rev |
line source |
bos@574
|
1 # -*- apache -*-
|
bos@574
|
2
|
bos@574
|
3 <VirtualHost *:80>
|
bos@593
|
4 ServerName hgbook.red-bean.com
|
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@593
|
15 Redirect permanent /hgbook.html /index.html
|
bos@593
|
16 Redirect permanent /hgbookch1.html /read/preface.html
|
bos@593
|
17 Redirect permanent /hgbookch2.html /read/a-tour-of-mercurial-the-basics.html
|
bos@593
|
18 Redirect permanent /hgbookch3.html /read/a-tour-of-mercurial-merging-work.html
|
bos@593
|
19 Redirect permanent /hgbookch4.html /read/behind-the-scenes.html
|
bos@593
|
20 Redirect permanent /hgbookch5.html /read/mercurial-in-daily-use.html
|
bos@593
|
21 Redirect permanent /hgbookch6.html /read/file-names-and-pattern-matching.html
|
bos@593
|
22 Redirect permanent /hgbookch6.html /read/managing-releases-and-branchy-development.html
|
bos@593
|
23 Redirect permanent /hgbookch7.html /read/finding-and-fixing-mistakes.html
|
bos@593
|
24 Redirect permanent /hgbookch8.html /read/handling-repository-events-with-hooks.html
|
bos@593
|
25 Redirect permanent /hgbookch9.html /read/customizing-the-output-of-mercurial.html
|
bos@593
|
26 Redirect permanent /hgbookch10.html /read/managing-change-with-mercurial-queues.html
|
bos@593
|
27 Redirect permanent /hgbookch11.html /read/advanced-uses-of-mercurial-queues.html
|
bos@593
|
28 Redirect permanent /hgbookch12.html /read/adding-functionality-with-extensions.html
|
bos@593
|
29 Redirect permanent /hgbookap1.html /read/command-reference.html
|
bos@593
|
30 Redirect permanent /hgbookap2.html /read/mercurial-queues-reference.html
|
bos@593
|
31 Redirect permanent /hgbookap3.html /read/installing-mercurial-from-source.html
|
bos@593
|
32 Redirect permanent /hgbookap4.html /read/open-publication-license.html
|
bos@593
|
33 Redirect permanent /hgbookli1.html /read/index.html
|
bos@593
|
34 Redirect permanent /hgbookli2.html /read/index.html
|
bos@593
|
35 Redirect permanent /hgbookli3.html /read/index.html
|
bos@593
|
36 Redirect permanent /hgbookli4.html /read/index.html
|
bos@593
|
37
|
bos@574
|
38 # Actively redirect requests via a ServerAlias to the canonical hostname.
|
bos@574
|
39 RewriteEngine On
|
bos@593
|
40 RewriteCond %{HTTP_HOST} !=hgbook.red-bean.com
|
bos@593
|
41 RewriteRule ^(.*) http://hgbook.red-bean.com$1 [R]
|
bos@574
|
42
|
bos@574
|
43 <Location "/">
|
bos@574
|
44 SetHandler python-program
|
bos@574
|
45 # hg clone http://bitbucket.org/mirror/django-trunk/
|
bos@574
|
46 PythonPath "['/home/bos/hg/django-trunk', '/home/bos/hg/hgbook/web'] + sys.path"
|
bos@574
|
47 PythonHandler django.core.handlers.modpython
|
bos@574
|
48 PythonAutoReload Off
|
bos@574
|
49 SetEnv DJANGO_SETTINGS_MODULE hgbook.settings
|
bos@574
|
50 PythonDebug Off
|
bos@574
|
51 </Location>
|
bos@574
|
52
|
bos@574
|
53 <Location ~ "^/$">
|
bos@574
|
54 SetHandler None
|
bos@574
|
55 DirectoryIndex index.html
|
bos@574
|
56 </Location>
|
bos@574
|
57
|
bos@574
|
58 <Location ~ "^/index.html">
|
bos@574
|
59 SetHandler None
|
bos@574
|
60 </Location>
|
bos@574
|
61
|
bos@574
|
62 <Location ~ "^/robots.txt">
|
bos@574
|
63 SetHandler None
|
bos@574
|
64 </Location>
|
bos@574
|
65
|
bos@574
|
66 <Location "/read">
|
bos@574
|
67 SetHandler None
|
bos@574
|
68 </Location>
|
bos@574
|
69
|
bos@574
|
70 <Location "/support">
|
bos@574
|
71 SetHandler None
|
bos@574
|
72 </Location>
|
bos@574
|
73
|
bos@574
|
74 <Location "/media">
|
bos@574
|
75 SetHandler None
|
bos@574
|
76 </Location>
|
bos@574
|
77
|
bos@574
|
78 Alias /media /home/bos/hg/django-trunk/django/contrib/admin/media
|
bos@574
|
79
|
bos@574
|
80 <Directory "/home/bos/hg/hgbook/en/html">
|
bos@574
|
81 Options Indexes FollowSymlinks
|
bos@574
|
82 AllowOverride None
|
bos@574
|
83 Order allow,deny
|
bos@574
|
84 Allow from all
|
bos@574
|
85 </Directory>
|
bos@574
|
86
|
bos@574
|
87 <Directory "/home/bos/hg/hgbook/en/html">
|
bos@574
|
88 AllowOverride AuthConfig
|
bos@574
|
89 </Directory>
|
bos@574
|
90
|
bos@574
|
91 <Directory "/home/bos/hg/hgbook/en/html/support">
|
bos@574
|
92 Options None
|
bos@574
|
93 </Directory>
|
bos@574
|
94 </VirtualHost>
|
bos@574
|
95
|
bos@574
|
96 <Directory "/home/bos/hg/django-trunk/django/contrib/admin/media">
|
bos@574
|
97 Options None
|
bos@574
|
98 AllowOverride None
|
bos@574
|
99 Order allow,deny
|
bos@574
|
100 Allow from all
|
bos@574
|
101 </Directory>
|