hgbook

view web/hgbook.conf @ 1101:5b6b0d5fc1b8

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