All pastes #797668 Raw Edit

Untitled

public text v1 · immutable
#797668 ·published 2007-11-26 04:23 UTC
rendered paste body
<Proxy balancer://mongrel_cluster>
    BalancerMember http://127.0.0.1:8000
    BalancerMember http://127.0.0.1:8001
</Proxy>

<VirtualHost 192.168.0.11:80>
    ServerAdmin info@sracdc.com
    ServerPath /cys
    ServerName sracdc.com
    ServerAlias sracdc.com *.sracdc.com
    DocumentRoot /Library/WebServer/Documents/cys_rails/current/public
    ErrorLog /var/log/httpd/cys-error_log
    CustomLog /var/log/httpd/cys-access_log combined

    <Directory "/Library/WebServer/Documents/cys_rails/current/public">
        Options FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

    RewriteEngine On

    RewriteCond %{DOCUMENT_ROOT}/system/maintenance.tml -f
    RewriteCond %{SCRIPT_FILENAME} !maintenance.html
    RewriteRule ^.*$ /system/maintenance.html [L]

    RewriteRule ^/$ /index.html [QSA]
    
    RewriteRule ^([^.]+)$ $1.html [QSA]

    RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
    RewriteRule ^/(.*)$ balancer://mongrel_clusters%{REQUEST_URI} [P,QSA,L]
</VirtualHost>