All pastes #804927 Raw Edit

Mine

public text v1 · immutable
·published 2007-12-03 22:10 UTC
rendered paste body
Listen 80
Listen x.x.x.x:443

NameVirtualHost *:80
NameVirtualHost *:443

<VirtualHost *:80>
    Include conf/www.example.com.conf
    RewriteLog "/tmp/rewrite.log"
    RewriteLogLevel 9
    RewriteEngine on

    # Redirect to https for SSL-only pages.
    RewriteCond %{HTTPS} !=on
    RewriteRule ^/webmail(.*) https://%{SERVER_NAME}/webmail$1 [R,L]

    RewriteCond %{HTTPS} !=on
    #RewriteRule ^/mailman(.*) https://%{SERVER_NAME}/mailman$1 [R,L]

    RewriteCond %{HTTPS} !=on
    RewriteRule ^/pipermail(.*) https://%{SERVER_NAME}/pipermail$1 [R,L]

    RewriteCond %{HTTPS} !=on
    RewriteRule ^/usage(.*) https://%{SERVER_NAME}/usage$1 [R,L]

    RewriteCond %{HTTPS} !=on
    RewriteRule ^/awstats(.*) https://%{SERVER_NAME}/awstats$1 [R,L]

    RewriteCond %{HTTPS} !=on
    RewriteCond %{REQUEST_URI} ^/admin($|(/.*$)) [NC]
    RewriteCond %{REQUEST_URI} !^/admin/trk_update\.php.*$ [NC]
    RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} [NC,R,L]
</VirtualHost>

<VirtualHost *:443>
    Include conf/www.example.com.conf
    Include conf/www.example.com.ssl.conf

    # See also ssl.conf
    SSLEngine On
    SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
    SSLCertificateFile /etc/httpd/conf/ssl.crt/www.example.com.crt
    SSLCertificateKeyFile /etc/httpd/conf/ssl.key/www.example.com.key
    SSLCertificateChainFile /etc/httpd/conf/ssl.crt/www.example.com.ca.bundle

    SetEnvIf User-Agent ".*MSIE.*" \
        nokeepalive ssl-unclean-shutdown \
        downgrade-1.0 force-response-1.0
</VirtualHost>