annotate web/hgbook.conf @ 786:11bc9d788428

finished tour-basic.tex
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sun, 07 Jun 2009 20:25:51 +0900
parents 8dfdbe1cf982
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
673
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
1 # -*- apache -*-
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
2
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
3 <VirtualHost *:80>
692
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
4 ServerName hgbook.red-bean.com
673
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
5 ServerAdmin bos@serpentine.com
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
6 ErrorLog logs/hgbook-error_log
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
7 # Debian:
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
8 # CustomLog logs/hgbook-access_log full
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
9 # Fedora:
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
10 CustomLog logs/hgbook-access_log combined
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
11 Options +MultiViews
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
12 DirectoryIndex index.html.var index.html
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
13 DocumentRoot "/home/bos/hg/hgbook/en/html"
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
14
692
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
15 Redirect permanent /hgbook.html /index.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
16 Redirect permanent /hgbookch1.html /read/preface.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
17 Redirect permanent /hgbookch2.html /read/a-tour-of-mercurial-the-basics.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
18 Redirect permanent /hgbookch3.html /read/a-tour-of-mercurial-merging-work.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
19 Redirect permanent /hgbookch4.html /read/behind-the-scenes.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
20 Redirect permanent /hgbookch5.html /read/mercurial-in-daily-use.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
21 Redirect permanent /hgbookch6.html /read/file-names-and-pattern-matching.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
22 Redirect permanent /hgbookch6.html /read/managing-releases-and-branchy-development.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
23 Redirect permanent /hgbookch7.html /read/finding-and-fixing-mistakes.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
24 Redirect permanent /hgbookch8.html /read/handling-repository-events-with-hooks.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
25 Redirect permanent /hgbookch9.html /read/customizing-the-output-of-mercurial.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
26 Redirect permanent /hgbookch10.html /read/managing-change-with-mercurial-queues.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
27 Redirect permanent /hgbookch11.html /read/advanced-uses-of-mercurial-queues.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
28 Redirect permanent /hgbookch12.html /read/adding-functionality-with-extensions.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
29 Redirect permanent /hgbookap1.html /read/command-reference.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
30 Redirect permanent /hgbookap2.html /read/mercurial-queues-reference.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
31 Redirect permanent /hgbookap3.html /read/installing-mercurial-from-source.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
32 Redirect permanent /hgbookap4.html /read/open-publication-license.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
33 Redirect permanent /hgbookli1.html /read/index.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
34 Redirect permanent /hgbookli2.html /read/index.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
35 Redirect permanent /hgbookli3.html /read/index.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
36 Redirect permanent /hgbookli4.html /read/index.html
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
37
673
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
38 # Actively redirect requests via a ServerAlias to the canonical hostname.
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
39 RewriteEngine On
692
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
40 RewriteCond %{HTTP_HOST} !=hgbook.red-bean.com
8dfdbe1cf982 Update Apache2 configuration.
Bryan O'Sullivan <bos@serpentine.com>
parents: 673
diff changeset
41 RewriteRule ^(.*) http://hgbook.red-bean.com$1 [R]
673
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
42
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
43 <Location "/">
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
44 SetHandler python-program
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
45 # hg clone http://bitbucket.org/mirror/django-trunk/
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
46 PythonPath "['/home/bos/hg/django-trunk', '/home/bos/hg/hgbook/web'] + sys.path"
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
47 PythonHandler django.core.handlers.modpython
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
48 PythonAutoReload Off
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
49 SetEnv DJANGO_SETTINGS_MODULE hgbook.settings
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
50 PythonDebug Off
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
51 </Location>
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
52
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
53 <Location ~ "^/$">
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
54 SetHandler None
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
55 DirectoryIndex index.html
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
56 </Location>
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
57
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
58 <Location ~ "^/index.html">
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
59 SetHandler None
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
60 </Location>
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
61
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
62 <Location ~ "^/robots.txt">
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
63 SetHandler None
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
64 </Location>
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
65
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
66 <Location "/read">
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
67 SetHandler None
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
68 </Location>
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
69
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
70 <Location "/support">
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
71 SetHandler None
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
72 </Location>
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
73
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
74 <Location "/media">
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
75 SetHandler None
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
76 </Location>
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
77
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
78 Alias /media /home/bos/hg/django-trunk/django/contrib/admin/media
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
79
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
80 <Directory "/home/bos/hg/hgbook/en/html">
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
81 Options Indexes FollowSymlinks
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
82 AllowOverride None
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
83 Order allow,deny
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
84 Allow from all
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
85 </Directory>
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
86
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
87 <Directory "/home/bos/hg/hgbook/en/html">
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
88 AllowOverride AuthConfig
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
89 </Directory>
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
90
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
91 <Directory "/home/bos/hg/hgbook/en/html/support">
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
92 Options None
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
93 </Directory>
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
94 </VirtualHost>
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
95
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
96 <Directory "/home/bos/hg/django-trunk/django/contrib/admin/media">
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
97 Options None
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
98 AllowOverride None
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
99 Order allow,deny
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
100 Allow from all
ad304b606163 Initial cut at web comment system import
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
101 </Directory>