All pastes #145188 Raw Edit

Anonymous

public text v1 · immutable
#145188 ·published 2006-08-22 21:16 UTC
rendered paste body
<VirtualHost *:80>
    ServerAdmin it@foo.com
##    DocumentRoot /www/docs/dummy-host2.example.com
    ServerName www.foo.com
    ErrorLog /var/log/www.foo.com-error_log
    CustomLog /var/log/www.foo.com-access_log common
    
    RewriteEngine On
    RewriteLog "/var/log/www.foo.com-rewrite_log"
    RewriteLogLevel 2

    Include /home/cthought/www_redirect.conf

    RewriteRule ^/(.+\.[a-z]{2,4})$ http://www.foo.com/$1 [P,L]
    RewriteRule ^/(.*)/$ http://www.foo.com/$1/index.html [P,L]
    RewriteRule ^/(.+) http://www.foo.com/$1/index.html [P]
    RewriteRule ^/(.*) http://www.foo.com/$1 [P]
    ProxyPassReverse / http://www.foo.com/

#    CacheEnable mem /
#    CacheDefaultExpire 86400 
#    MCacheSize 102400
</VirtualHost>

NameVirtualHost *:80

<VirtualHost *:80>
    ServerAdmin it@foo.com
##    DocumentRoot /www/docs/dummy-host2.example.com
    ServerName qa.foo.com
    ErrorLog /var/log/qa.foo.com-error_log
    CustomLog /var/log/qa.foo.com-access_log common

#    CacheEnable mem /
#    MCacheSize 102400
#    CacheRoot /tmp/cacheroot
#    CacheEnable disk /
#    CacheDirLevels 5
#    CacheDirLength 3
#    CacheIgnoreNoLastMod On


    RewriteEngine On
    RewriteLog "/var/log/qa.foo.com-rewrite_log"
    RewriteLogLevel 2

    Include /home/cthought/qa_redirect.conf

    RewriteRule ^/(.+\.[a-z]{2,4})$ http://qa.foo.com/$1 [P,L]
    RewriteRule ^/(.*)/$ http://qa.foo.com/$1/index.html [P,L]
    RewriteRule ^/(.+) http://qa.foo.com/$1/index.html [P]
    RewriteRule ^/(.*) http://qa.foo.com/$1 [P]
    ProxyPassReverse / http://qa.foo.com/
</VirtualHost>