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