Mercurial > hgbook
comparison web/hgbook.conf @ 673:ad304b606163
Initial cut at web comment system import
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue, 10 Mar 2009 21:42:19 -0700 |
parents | |
children | 8dfdbe1cf982 |
comparison
equal
deleted
inserted
replaced
672:40025381bded | 673:ad304b606163 |
---|---|
1 # -*- apache -*- | |
2 | |
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" | |
14 | |
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] | |
19 | |
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> | |
29 | |
30 <Location ~ "^/$"> | |
31 SetHandler None | |
32 DirectoryIndex index.html | |
33 </Location> | |
34 | |
35 <Location ~ "^/index.html"> | |
36 SetHandler None | |
37 </Location> | |
38 | |
39 <Location ~ "^/robots.txt"> | |
40 SetHandler None | |
41 </Location> | |
42 | |
43 <Location "/read"> | |
44 SetHandler None | |
45 </Location> | |
46 | |
47 <Location "/support"> | |
48 SetHandler None | |
49 </Location> | |
50 | |
51 <Location "/media"> | |
52 SetHandler None | |
53 </Location> | |
54 | |
55 Alias /media /home/bos/hg/django-trunk/django/contrib/admin/media | |
56 | |
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> | |
63 | |
64 <Directory "/home/bos/hg/hgbook/en/html"> | |
65 AllowOverride AuthConfig | |
66 </Directory> | |
67 | |
68 <Directory "/home/bos/hg/hgbook/en/html/support"> | |
69 Options None | |
70 </Directory> | |
71 </VirtualHost> | |
72 | |
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> |