[Mongrel] Apache+Mongrel Redirection Problems

Stan Baptista stan.baptista at gmail.com
Tue Feb 20 14:56:19 EST 2007


 On 2/16/07, Stan Baptista <stan.baptista at gmail.com> wrote:
>
> > Did you get this resolved Stan?
>
> Yes, thanks. Basically a misunderstanding on my part about how VirtualHost
> directives work in the Apache httpd.conf file. I meant to post the
> solution because I'm curious as to whether I came up with the best approach.
> But it will have to wait until next week when I'm back in the office and
> have access to the Linux system (4-day weekend:-)
>
> I also discovered that the CSS styles aren't rendering in the Rails app
> being served by Mongrel. I strongly suspect it's a ReverseProxy setup issue.
> I'm a little hesitant to bring this up here since I don't think it's a
> Mongrel problem. But I'll post some of the code and if it seems too OT, let
> me know.
>


I'm using Apache 2.2. Here's a snip of httpd.conf.:


> NameVirtualHost 10.4.1.84
>
> <VirtualHost 10.4.1.84>
>
>     RewriteEngine on
>     RewriteRule ^/rss(.*) http://10.4.1.84:5432$1 [P]
>     RewriteRule ^/railstest(.*) http://10.4.1.84:8021$1 [P]
>
> </VirtualHost>
>
> <VirtualHost 10.4.1.84>
>
>     ServerName rss
>     ProxyPass / http://10.4.1.84:5432/
>     ProxyPassReverse /rss http://10.4.1.84:5432/
>     ProxyPreserveHost on
>
> </VirtualHost>
>
> <VirtualHost 10.4.1.84>
>
>     ServerName railstest
>     ProxyPass / http://10.4.1.84:8021/
>     ProxyPassReverse /railstest http://10.4.1.84:8021/
>     ProxyPreserveHost on
>
> </VirtualHost>
>


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


More information about the Mongrel-users mailing list