nathan.mealey-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Dec-14 20:58 UTC
Apache2, Mongrel & multiple apps
I''m running Apache 2.0 as a proxy to several Mongrel/Rails apps, so that all of my Mongrel apps can be routed through the single Apache IP address. The problem I''m having is that this setup works well for apps that do not use the public/index.html file as the main page. For any apps that do use public/inedx.html as the main page, none of the links off of index.html work. So no stylesheet info, no images, and no links to other parts of the application. This despite having installed the reverse_proxy_fix plugin. The tutorial from here (http://www.napcsweb.com/howto/rails/deployment/RailsWithApacheAndMongrel.pdf) didn''t cover this type of error, and I''ve been stuck fiddling with it for a while. Has anyone else had this problem and resolved it? Any help is much appreciated. My httpd-proxy.conf file is included below: LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> #Proxy information for project application Alias /project "e:/rails_apps/project/public" <Directory "e:/rails_apps/project/public"> Options Indexes FollowSymLinks AllowOverride none Order allow,deny Allow from all </Directory> ProxyPass /project/images ! ProxyPass /project/stylesheets ! ProxyPass /project/javascripts ! ProxyPass /project/ http://127.0.0.1:4000/ ProxyPass /project http://127.0.0.1:4000/ ProxyPassReverse /project/ http://127.0.0.1:4000/ #Proxy information for research guides application #this is the application not working properly Alias /research "e:/rails_apps/research/public" <Directory "e:/rails_apps/research/public"> Options Indexes FollowSymLinks AllowOverride none Order allow,deny Allow from all </Directory> ProxyPass /research/images ! ProxyPass /research/stylesheets ! ProxyPass /research/javascripts ! ProxyPass /research/ http://127.0.0.1:4002/ ProxyPass /research http://127.0.0.1:4002/ ProxyPassReverse /research/ http://127.0.0.1:4002/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---