All pastes #427758 Raw Edit

Untitled

public text v1 · immutable
·published 2007-04-07 00:08 UTC
rendered paste body
NameVirtualHost 10.5.0.3:443
<VirtualHost 10.5.0.3:443>
        ServerAdmin admin@site.com

        SSLEngine On
        SSLCertificateFile /etc/apache2/ssl/cert.pem
        SSLCertificateKeyFile /etc/apache2/ssl/key.pem
        SSLCACertificateFile /etc/apache2/ssl/cacert.pem

        DocumentRoot /var/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
                #RedirectMatch ^/$ /main/
                RewriteEngine On
                RewriteBase /
                RewriteRule ^$ /main/
                RewriteRule ^main$ /main/
        </Directory>

                ProxyPass        /main/ http://webserver.site.com/
                ProxyPassReverse /main/ http://webserver.site.com/

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog /var/log/apache2/error.log

        # Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined
        ServerSignature On

</VirtualHost>