[Mongrel] Apache+Mongrel Redirection Problems

Stan Baptista stan.baptista at gmail.com
Wed Feb 7 16:36:58 EST 2007


Michael,

Thanks for your help.

> You have the server names as "rss" and "railstest", don't you have to
access them via those hosts?

If I put these entries in my local hosts file:

 10.4.1.84 rss
10.4.1.84 railstest

they are then accessible from my browser using these addresses:

http://rss
http://railstest

Adding them to my local computer's hosts file is OK for my own use but there
are a few other folks I'd like to show these to scattered throughout the
site where I work and I'd like to find a way to do this other than modifying
the hosts file on each system.

One of the webmasters here thought it was sufficient to add the lines
above to the _remote_ system's hosts file and adding RewriteRules to each
VirtualHost directive.

The goal is to be able to do this from anywhere:

http://10.4.1.84/rss
 http://10.4.1.84/railstest

(But no;-)

As you suggested, the remote system is taking the first VirtuaHost directive
and is actually trying to find "railstest" on the first Mongrel site (rss)
and, of course, not finding it.

-Stan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070207/c9777b17/attachment.html 


More information about the Mongrel-users mailing list