All pastes #677125 Raw Edit

Something

public text v1 · immutable
#677125 ·published 2007-08-31 18:20 UTC
rendered paste body
==> django-rewrite <==
#NameVirtualHost *
#<VirtualHost *>

NameVirtualHost jfk.company.com:80
<VirtualHost jfk.company.com:80>

        ServerName jfk.company.com
        ServerAdmin ryan@company.com

        RewriteEngine   on
        RewriteCond     %{SERVER_PORT} ^80$
        RewriteRule     ^/(.*)$ https://%{SERVER_NAME}/$1 [L,R]
        RewriteLog      "/var/log/apache2/rewrite.log"


        ErrorLog /var/log/apache2/rewriteerror.log

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

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

</VirtualHost>

==> django-ssl <==
<VirtualHost jfk.company.com:443>
NameVirtualHost jfk.company.com:443

        ServerName jfk.company.com
        ServerAdmin ryan@company.com

        SSLEngine On
        SSLCertificateFile      /etc/apache2/ssl/jfk.crt
        SSLCertificateKeyFile   /etc/apache2/ssl/jfk.key

    <Location "/">
        SetHandler python-program
        PythonHandler django.core.handlers.modpython
        SetEnv DJANGO_SETTINGS_MODULE dataservices.settings
        PythonDebug On
    </Location>

    <Location "/racecoding">
        AuthType Basic
        AuthName "Company: Data Services"
        AuthUserFile /etc/apache2/passwd
        Require valid-user
    </Location>

    DocumentRoot /var/lib/python-support/python2.5/django/contrib/admin/
    <Location "/media">
        SetHandler None
    </Location>

        ErrorLog /var/log/apache2/djangossl_error.log

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

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


==> files <==
#NameVirtualHost online.company.com
#<VirtualHost online.company.com>

NameVirtualHost online.company.com:80
<VirtualHost online.company.com:80>
        ServerName online.company.com
        ServerAdmin chris@company.com

        DocumentRoot /var/www/files/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/files>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
                # This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
                #RedirectMatch ^/$ /apache2-default/
        </Directory>


        ErrorLog /var/log/apache2/fileserror.log

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

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