Sorry to bother you with a Rails "newbie"-like question, but I have been 
tearing my hair out for a couple of days with the deployment scenario I am 
trying to setup. I use a service provider that supports multiple domains via 
Virtual Hosts.  I have all the software installed and "working".   I want to 
deploy two apps under my domain and have the following in my .conf file:

Redirect /app1 http://www.mydomain.com/app1/
ProxyPass /app1/  http://localhost:3000/
ProxyPassReverse /app1/  http://localhost:3000/

Redirect /app2 http://www.mydomain.com/app2/
ProxyPass /app2/  http://localhost:3001/
ProxyPassReverse /app2/  http://localhost:3001/

ProxyPreserveHost On

Everything seems to work fine from my browser when I enter things like:

www.mydomain.com/app1
www.mydomain.com/app1/
www.mydomain.com/app1/controller/action
etc...

The problem occurs when I am on one of those pages (say 
www.mydomain.com/app1/controller/action) and the controller does something 
like:

redirect_back_or_default(:controller => '/account', :action => 'index')

then I get the following error:

Not Found

The requested URL /controller/action was not found on this server.
Apache/2.0.52 (CentOS) Server at www.mydomain.com Port 80

I know that I am missing something REALLY simple here!  Somehow I need to 
have "appX" prepended in this scenario?  If so, how do I do that?  If not, 
do you have any idea what I am doing wrong?  Thanks SO much for taking the 
time to help someone new to Rails with a question!

Thanks!,

Martin


_______________________________________________
Mongrel-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to