sign in
Home | Updates | Pages | Users | Admin | Help

mongrelmultiapp

Multiple rails apps with Mongrel

<Proxy balancer://app1balancer>
BalancerMember http://127.0.0.1:6000
BalancerMember http://127.0.0.1:6001
BalancerMember http://127.0.0.1:6002
</Proxy>

<Proxy balancer://app2balancer>
BalancerMember http://127.0.0.1:7000
BalancerMember http://127.0.0.1:7001
BalancerMember http://127.0.0.1:7002
</Proxy>

<VirtualHost *:80>
ProxyPass /app1/images ! 
ProxyPass /app1/stylesheets ! 
#continue with other static files that should be served by apache

ProxyPass /app2/images ! 
ProxyPass /app2/stylesheets ! 
#continue with other static files that should be served by apache

Alias /app1/images /path/to/public/images
Alias /app1/stylesheets /path/to/public/stylesheets 
#continue with aliases for static content

Alias /app2/images /path/to/public/images
Alias /app2/stylesheets /path/to/public/stylesheets 
#continue with aliases for static content

ProxyPass /app1 balancer://app1balancer
ProxyPass /app2 balancer://app1balancer
</VirtualHost>

Powered by JunebugWiki v0.0.31 Page last edited by stoyan on December 18, 2006 05:02 PM (diff)
[readonly] Version 2 (current) «olderversions