2010-09-26 22:56:35 +00:00
|
|
|
# Copyright (C) 2005-2009, Software Freedom Law Center, Inc.
|
|
|
|
# Copyright (C) 2010, Bradley M. Kuhn
|
2010-09-26 22:47:28 +00:00
|
|
|
|
2010-09-26 23:07:47 +00:00
|
|
|
# Permission to use, copy, modify, distribute and/or distributed modified
|
|
|
|
# versions of this software for any purpose with or without fee is hereby
|
|
|
|
# granted, provided that the above copyright notice and this permission
|
|
|
|
# notice appear in all copies.
|
|
|
|
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
|
|
# IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
2010-09-26 22:56:35 +00:00
|
|
|
|
|
|
|
NameVirtualHost 10.10.11.21:80
|
|
|
|
#NameVirtualHost 10.10.11.21:443
|
|
|
|
|
|
|
|
<VirtualHost 10.10.11.21:80>
|
|
|
|
ServerName sfconservancy.org
|
|
|
|
ServerAdmin root@sfconservancy.org
|
2010-09-26 22:47:28 +00:00
|
|
|
# SSLCertificateFile /etc/apache2/ssl/apache.pem
|
2010-09-26 22:56:35 +00:00
|
|
|
DocumentRoot /var/www/conservancy/static
|
2010-09-26 22:47:28 +00:00
|
|
|
|
2010-09-26 22:56:35 +00:00
|
|
|
<Directory /var/www/conservancy/static>
|
2010-09-26 22:47:28 +00:00
|
|
|
Options -Indexes FollowSymLinks -MultiViews
|
|
|
|
Order allow,deny
|
|
|
|
allow from all
|
|
|
|
AllowOverride None
|
|
|
|
</Directory>
|
|
|
|
|
2010-09-26 22:56:35 +00:00
|
|
|
PythonPath "['/var/www'] + sys.path"
|
2010-09-26 22:47:28 +00:00
|
|
|
SetEnv DJANGO_SETTINGS_MODULE conservancy.settings
|
|
|
|
PythonDebug Off
|
2010-09-26 22:56:35 +00:00
|
|
|
PythonPostReadRequestHandler wrapper
|
2010-09-26 22:47:28 +00:00
|
|
|
|
|
|
|
PythonOutputFilter modpythoncustom DJANGOTEMPLATE
|
|
|
|
AddOutputFilter DJANGOTEMPLATE html
|
|
|
|
|
|
|
|
ErrorDocument 401 /401error.html
|
|
|
|
ErrorDocument 403 /403error.html
|
|
|
|
ErrorDocument 404 /404error.html
|
|
|
|
ErrorDocument 500 /500error.html
|
|
|
|
|
2010-09-26 22:56:35 +00:00
|
|
|
ErrorLog /var/log/apache2/sfconservancy.org_error.log
|
2010-09-26 22:47:28 +00:00
|
|
|
|
|
|
|
# Possible values include: debug, info, notice, warn, error, crit,
|
|
|
|
# alert, emerg.
|
|
|
|
LogLevel warn
|
|
|
|
|
2010-09-26 22:56:35 +00:00
|
|
|
CustomLog /var/log/apache2/sfconservancy.org_access.log combined
|
2010-09-26 22:47:28 +00:00
|
|
|
ServerSignature On
|
|
|
|
|
|
|
|
</VirtualHost>
|