Mercurial > hgbook
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/hgbook.conf Tue Mar 10 21:42:19 2009 -0700 @@ -0,0 +1,78 @@ +# -*- apache -*- + +<VirtualHost *:80> + ServerName www.hgbook.org + ServerAdmin bos@serpentine.com + ErrorLog logs/hgbook-error_log + # Debian: + # CustomLog logs/hgbook-access_log full + # Fedora: + CustomLog logs/hgbook-access_log combined + Options +MultiViews + DirectoryIndex index.html.var index.html + DocumentRoot "/home/bos/hg/hgbook/en/html" + + # Actively redirect requests via a ServerAlias to the canonical hostname. + RewriteEngine On + RewriteCond %{HTTP_HOST} !=www.hgbook.org + RewriteRule ^(.*) http://www.hgbook.org$1 [R] + + <Location "/"> + SetHandler python-program + # hg clone http://bitbucket.org/mirror/django-trunk/ + PythonPath "['/home/bos/hg/django-trunk', '/home/bos/hg/hgbook/web'] + sys.path" + PythonHandler django.core.handlers.modpython + PythonAutoReload Off + SetEnv DJANGO_SETTINGS_MODULE hgbook.settings + PythonDebug Off + </Location> + + <Location ~ "^/$"> + SetHandler None + DirectoryIndex index.html + </Location> + + <Location ~ "^/index.html"> + SetHandler None + </Location> + + <Location ~ "^/robots.txt"> + SetHandler None + </Location> + + <Location "/read"> + SetHandler None + </Location> + + <Location "/support"> + SetHandler None + </Location> + + <Location "/media"> + SetHandler None + </Location> + + Alias /media /home/bos/hg/django-trunk/django/contrib/admin/media + + <Directory "/home/bos/hg/hgbook/en/html"> + Options Indexes FollowSymlinks + AllowOverride None + Order allow,deny + Allow from all + </Directory> + + <Directory "/home/bos/hg/hgbook/en/html"> + AllowOverride AuthConfig + </Directory> + + <Directory "/home/bos/hg/hgbook/en/html/support"> + Options None + </Directory> +</VirtualHost> + +<Directory "/home/bos/hg/django-trunk/django/contrib/admin/media"> + Options None + AllowOverride None + Order allow,deny + Allow from all +</Directory>