Files @ bd6199f7b00e
Branch filter:

Location: website/apache2/sites-available/

Added middleware and management file
# Copyright (C) 2005-2009, Software Freedom Law Center, Inc.
# Copyright (C) 2010, Bradley M. Kuhn

#   This file is licensed under the ISC license.  See the toplevel file
#   in this repository, ISC_LICENSE.  If you received this file separated
#   from its repository, you should be able to find a copy of the license
#   at:


#        SSLCertificateFile /etc/apache2/ssl/apache.pem
        DocumentRoot /var/www/conservancy/static

        <Directory /var/www/conservancy/static>
             Options -Indexes FollowSymLinks -MultiViews
             Order allow,deny
             allow from all
             AllowOverride None

        PythonPath "['/var/www'] + sys.path"
        SetEnv DJANGO_SETTINGS_MODULE conservancy.settings
        PythonDebug Off
        PythonPostReadRequestHandler wrapper

        PythonOutputFilter modpythoncustom DJANGOTEMPLATE
        AddOutputFilter DJANGOTEMPLATE html

        ErrorDocument 401 /401error.html
        ErrorDocument 403 /403error.html
        ErrorDocument 404 /404error.html
        ErrorDocument 500 /500error.html

        ErrorLog /var/log/apache2/sfconservancy.org_error.log

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

        CustomLog /var/log/apache2/sfconservancy.org_access.log combined
        ServerSignature On