Skip to navigation
How to setup apache2 for mongrel cluster
07.12.13
1. /etc/apache2/mods-enabled proxy_balancer.load proxy.load proxy.conf headers.load proxy_http.load rewrite.load alias.load authz_default.load authz_user.load cgi.load env.load negotiation.load php5.conf auth_basic.load authz_groupfile.load autoindex.load dir.conf perl.conf php5.load setenvif.load authn_file.load authz_host.load cache.load dir.load mime.load perl.load status.load 2. /etc/apache2/conf.d/myapp.comoon
Options FollowSymLinks AllowOverride None Order allow,deny Allow from all
RewriteEngine On # Uncomment for rewrite debugging #RewriteLog logs/myapp_rewrite_log #RewriteLogLevel 9 # Check for maintenance file and redirect all requests # ( this is for use with Capistrano's disable_web task ) RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f RewriteCond %{SCRIPT_FILENAME} !maintenance.html RewriteRule ^.*$ /system/maintenance.html [L] # Rewrite index to check for static RewriteRule ^/$ /index.html [QSA] # Rewrite to check for Rails cached page RewriteRule ^([^.]+)$ $1.html [QSA] # Redirect all non-static requests to cluster RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://myappcluster%{REQUEST_URI} [P,QSA,L] 3 /etc/apache2/sites-available/myapp
Include /etc/apache2/conf.d/theroomlist.common #ErrorLog logs/myapp_errors_log #CustomLog logs/myapp_log combined
Order allow,deny Allow from all
BalancerMember http://192.168.0.2:8001 BalancerMember http://192.168.0.2:8002 BalancerMember http://pixy.selfip.com:8003 BalancerMember http://192.168.0.2:8004
4. enable the site
Reply
Anonymous
How to setup apache2 for mongrel cluster
1. /etc/apache2/mods-enabled proxy_balancer.load proxy.load proxy.conf headers.load proxy_http.load rewrite.load alias.load authz_default.load authz_user.load cgi.load env.load negotiation.load php5.conf auth_basic.load authz_groupfile.load autoindex.load dir.conf perl.conf php5.load setenvif.load authn_file.load authz_host.load cache.load dir.load mime.load perl.load status.load 2. /etc/apache2/conf.d/myapp.comoon
Options FollowSymLinks AllowOverride None Order allow,deny Allow from all
RewriteEngine On # Uncomment for rewrite debugging #RewriteLog logs/myapp_rewrite_log #RewriteLogLevel 9 # Check for maintenance file and redirect all requests # ( this is for use with Capistrano's disable_web task ) RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f RewriteCond %{SCRIPT_FILENAME} !maintenance.html RewriteRule ^.*$ /system/maintenance.html [L] # Rewrite index to check for static RewriteRule ^/$ /index.html [QSA] # Rewrite to check for Rails cached page RewriteRule ^([^.]+)$ $1.html [QSA] # Redirect all non-static requests to cluster RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://myappcluster%{REQUEST_URI} [P,QSA,L] 3 /etc/apache2/sites-available/myapp
Include /etc/apache2/conf.d/theroomlist.common #ErrorLog logs/myapp_errors_log #CustomLog logs/myapp_log combined
Order allow,deny Allow from all
BalancerMember http://192.168.0.2:8001 BalancerMember http://192.168.0.2:8002 BalancerMember http://pixy.selfip.com:8003 BalancerMember http://192.168.0.2:8004
4. enable the site
07.12.13
Reply
Anonymous
Information Epoch 1732366595
Allow the user to tailor the environment.
Home
Notebook
Contact us