hgbook

view 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 source
1 # -*- apache -*-
3 <VirtualHost *:80>
4 ServerName www.hgbook.org
5 ServerAdmin bos@serpentine.com
6 ErrorLog logs/hgbook-error_log
7 # Debian:
8 # CustomLog logs/hgbook-access_log full
9 # Fedora:
10 CustomLog logs/hgbook-access_log combined
11 Options +MultiViews
12 DirectoryIndex index.html.var index.html
13 DocumentRoot "/home/bos/hg/hgbook/en/html"
15 # Actively redirect requests via a ServerAlias to the canonical hostname.
16 RewriteEngine On
17 RewriteCond %{HTTP_HOST} !=www.hgbook.org
18 RewriteRule ^(.*) http://www.hgbook.org$1 [R]
20 <Location "/">
21 SetHandler python-program
22 # hg clone http://bitbucket.org/mirror/django-trunk/
23 PythonPath "['/home/bos/hg/django-trunk', '/home/bos/hg/hgbook/web'] + sys.path"
24 PythonHandler django.core.handlers.modpython
25 PythonAutoReload Off
26 SetEnv DJANGO_SETTINGS_MODULE hgbook.settings
27 PythonDebug Off
28 </Location>
30 <Location ~ "^/$">
31 SetHandler None
32 DirectoryIndex index.html
33 </Location>
35 <Location ~ "^/index.html">
36 SetHandler None
37 </Location>
39 <Location ~ "^/robots.txt">
40 SetHandler None
41 </Location>
43 <Location "/read">
44 SetHandler None
45 </Location>
47 <Location "/support">
48 SetHandler None
49 </Location>
51 <Location "/media">
52 SetHandler None
53 </Location>
55 Alias /media /home/bos/hg/django-trunk/django/contrib/admin/media
57 <Directory "/home/bos/hg/hgbook/en/html">
58 Options Indexes FollowSymlinks
59 AllowOverride None
60 Order allow,deny
61 Allow from all
62 </Directory>
64 <Directory "/home/bos/hg/hgbook/en/html">
65 AllowOverride AuthConfig
66 </Directory>
68 <Directory "/home/bos/hg/hgbook/en/html/support">
69 Options None
70 </Directory>
71 </VirtualHost>
73 <Directory "/home/bos/hg/django-trunk/django/contrib/admin/media">
74 Options None
75 AllowOverride None
76 Order allow,deny
77 Allow from all
78 </Directory>