==> django-rewrite <== #NameVirtualHost * # NameVirtualHost 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 ==> django-ssl <== 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 SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE dataservices.settings PythonDebug On AuthType Basic AuthName "Company: Data Services" AuthUserFile /etc/apache2/passwd Require valid-user DocumentRoot /var/lib/python-support/python2.5/django/contrib/admin/ SetHandler None 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 # NameVirtualHost online.company.com:80 ServerName online.company.com ServerAdmin chris@company.com DocumentRoot /var/www/files/ Options FollowSymLinks AllowOverride None 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/ 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