[Instantrails-users] Create a virtual host using Instant Rails 1.7

udai kudikyala udaikudikyala at gmail.com
Thu May 24 17:51:59 EDT 2007

   Thanks for the instant reply : ).
THis is what I did
1. Under
Rails Applications --> Manage Rail Applications
I clicked on the demo (my application) check box and clicked on Configure
Startup Mode button
In Configure Demo Window I set
  Runtime mode text box : development
  Port: 3038
  Then I clicked on Edit Apache Config button and added the following text
<VirtualHost *>
    ServerName www.mydemo.com
    ProxyPass / http://localhost:3028/
    ProxyPassReverse / http://localhost:3028
Saved this file
  Then I clicked on the Edit Window Host file and added the following line www.mydemo.com
Saved this file and clicked OK button in Configue Demo Window
Then I Clicked on Start with Mongrel button in Rails Application Window.
Now, I opened IE and typed the URL : http://www.mydemo.com/
It showed me the default page (welcome Aboard Riding the Rails page).
I have to physically type http://www.mydemo.com/blog  in order to see my
application (scaffolding).  Blog is the controller for this application.
Now, the cookbook application seems to be redirecting to
   http://www.mycookbook.com/recipe/list by just typing the URL
This is not hapenning with my application though.  I don't undersand.
Any help is appreciated.
Thanks again for your help.


On 5/24/07, Curt Hibbs <curt.hibbs at gmail.com> wrote:
> On 5/24/07, udai kudikyala <udaikudikyala at gmail.com> wrote:
> >
> > Hi,
> >    I created a new rails application called demo using Instant Rails 1.7.
> > It runs at the URL http://localhost:3003/blog/
> >
> > The applications that a packaged with the zip file, cookbook and typo
> > are currenlty the two virtual hosts.  I can already run them using the
> > following URLs
> > http://www.mycookbook.com and http://typo/
> > Now, I want to add my application demo as the third virtual host in
> > development mode.
> > This application for example, could run on the URL
> > http://www.mydemo.com/
> > What files do I need to modify to set this up?
> >
> >
> Just pick an unused port (like 3008 or something), and configure your
> rails app to run there. Edit the apache config file (through the Instant
> Rails menus) and duplicate the section already in there for eith typo or the
> cookbook, and then change name and port to match your new app.
> Finally edit you windows HOSTS file to map the new name to you already have your own DNS server running).
> Curt
> _______________________________________________
> Instantrails-users mailing list
> Instantrails-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/instantrails-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20070524/79f520d4/attachment.html 

More information about the Instantrails-users mailing list