[Instantrails-users] Create a virtual host using Instant Rails 1.7
udaikudikyala at gmail.com
Thu May 24 17:51:59 EDT 2007
Thanks for the instant reply : ).
THis is what I did
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
Then I clicked on Edit Apache Config button and added the following text
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
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 127.0.0.1(unless you already have your own DNS server running).
> Instantrails-users mailing list
> Instantrails-users at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Instantrails-users