On 2/16/07, Stan Baptista <[EMAIL PROTECTED]> 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
_______________________________________________
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to