<Proxy balancer://mongrel_cluster_hyperactive>
BalancerMember http://127.0.0.1:8011
BalancerMember http://127.0.0.1:8012
</Proxy>
<VirtualHost x.x.x.x:80>
ServerAdmin someone_gmail_com
ServerName ny.indymedia.dk
DocumentRoot /var/www/imcalendartest/current/public/
<Directory /var/www/imcalendartest/current/public/>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
RewriteEngine On
# Uncomment for rewrite debugging
#RewriteLog logs/myapp_rewrite_log
#RewriteLogLevel 9
# Check for maintenance file and redirect all requests
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /system/maintenance.html [L]
# Rewrite index to check for static
RewriteRule ^/$ /system/cache/index.html [QSA]
# Rewrite to check for Rails cached page
RewriteRule ^([^.]+)$ /system/cache/$1.html [QSA]
# Redirect all non-static requests to cluster
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://mongrel_cluster_hyperactive%{REQUEST_URI$
# Deflate
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml a$
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0r678 no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Uncomment for deflate debugging
#DeflateFilterNote Input input_info
#DeflateFilterNote Output output_info
#DeflateFilterNote Ratio ratio_info
#LogFormat '"%r" %{output_info}n/%{input_info}n (%{ratio_info}n%%)' deflate
#CustomLog logs/myapp_deflate_log deflate
ErrorLog /var/log/apache2/ny.indymedia.dk-error.log
LogLevel warn
# Possible LogLevel values include: debug, info, notice, warn, error, c$
CustomLog /var/log/apache2/ny.indymedia.dk-access.log combined
</VirtualHost>
Also available in:
HTML
TXT