hgbook

diff web/hgbook.conf @ 574:ad304b606163

Initial cut at web comment system import
author Bryan O'Sullivan <bos@serpentine.com>
date Tue Mar 10 21:42:19 2009 -0700 (2009-03-10)
parents
children 8dfdbe1cf982
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/web/hgbook.conf	Tue Mar 10 21:42:19 2009 -0700
     1.3 @@ -0,0 +1,78 @@
     1.4 +# -*- apache -*-
     1.5 +
     1.6 +<VirtualHost *:80>
     1.7 +    ServerName www.hgbook.org
     1.8 +    ServerAdmin bos@serpentine.com
     1.9 +    ErrorLog logs/hgbook-error_log
    1.10 +    # Debian:
    1.11 +    # CustomLog logs/hgbook-access_log full
    1.12 +    # Fedora:
    1.13 +    CustomLog logs/hgbook-access_log combined
    1.14 +    Options +MultiViews
    1.15 +    DirectoryIndex index.html.var index.html
    1.16 +    DocumentRoot "/home/bos/hg/hgbook/en/html"
    1.17 +
    1.18 +    # Actively redirect requests via a ServerAlias to the canonical hostname.
    1.19 +    RewriteEngine On
    1.20 +    RewriteCond %{HTTP_HOST} !=www.hgbook.org
    1.21 +    RewriteRule ^(.*) http://www.hgbook.org$1 [R]
    1.22 +
    1.23 +    <Location "/">
    1.24 +        SetHandler python-program
    1.25 +	# hg clone http://bitbucket.org/mirror/django-trunk/
    1.26 +        PythonPath "['/home/bos/hg/django-trunk', '/home/bos/hg/hgbook/web'] + sys.path"
    1.27 +        PythonHandler django.core.handlers.modpython
    1.28 +        PythonAutoReload Off
    1.29 +        SetEnv DJANGO_SETTINGS_MODULE hgbook.settings
    1.30 +        PythonDebug Off
    1.31 +    </Location>
    1.32 +
    1.33 +    <Location ~ "^/$">
    1.34 +        SetHandler None
    1.35 +        DirectoryIndex index.html
    1.36 +    </Location>
    1.37 +
    1.38 +    <Location ~ "^/index.html">
    1.39 +        SetHandler None
    1.40 +    </Location>
    1.41 +
    1.42 +    <Location ~ "^/robots.txt">
    1.43 +        SetHandler None
    1.44 +    </Location>
    1.45 +
    1.46 +    <Location "/read">
    1.47 +        SetHandler None
    1.48 +    </Location>
    1.49 +
    1.50 +    <Location "/support">
    1.51 +        SetHandler None
    1.52 +    </Location>
    1.53 +
    1.54 +    <Location "/media">
    1.55 +        SetHandler None
    1.56 +    </Location>
    1.57 +
    1.58 +    Alias /media /home/bos/hg/django-trunk/django/contrib/admin/media
    1.59 +
    1.60 +    <Directory "/home/bos/hg/hgbook/en/html">
    1.61 +        Options Indexes FollowSymlinks
    1.62 +        AllowOverride None
    1.63 +        Order allow,deny
    1.64 +        Allow from all
    1.65 +    </Directory>
    1.66 +
    1.67 +    <Directory "/home/bos/hg/hgbook/en/html">
    1.68 +        AllowOverride AuthConfig
    1.69 +    </Directory>
    1.70 +
    1.71 +    <Directory "/home/bos/hg/hgbook/en/html/support">
    1.72 +        Options None
    1.73 +    </Directory>
    1.74 +</VirtualHost>
    1.75 +
    1.76 +<Directory "/home/bos/hg/django-trunk/django/contrib/admin/media">
    1.77 +    Options None
    1.78 +    AllowOverride None
    1.79 +    Order allow,deny
    1.80 +    Allow from all
    1.81 +</Directory>