Mercurial > hgbook
comparison web/hgbook.conf @ 692:8dfdbe1cf982
Update Apache2 configuration.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Thu, 26 Mar 2009 22:00:32 -0700 |
parents | ad304b606163 |
children |
comparison
equal
deleted
inserted
replaced
691:4ce9d0754af3 | 692:8dfdbe1cf982 |
---|---|
1 # -*- apache -*- | 1 # -*- apache -*- |
2 | 2 |
3 <VirtualHost *:80> | 3 <VirtualHost *:80> |
4 ServerName www.hgbook.org | 4 ServerName hgbook.red-bean.com |
5 ServerAdmin bos@serpentine.com | 5 ServerAdmin bos@serpentine.com |
6 ErrorLog logs/hgbook-error_log | 6 ErrorLog logs/hgbook-error_log |
7 # Debian: | 7 # Debian: |
8 # CustomLog logs/hgbook-access_log full | 8 # CustomLog logs/hgbook-access_log full |
9 # Fedora: | 9 # Fedora: |
10 CustomLog logs/hgbook-access_log combined | 10 CustomLog logs/hgbook-access_log combined |
11 Options +MultiViews | 11 Options +MultiViews |
12 DirectoryIndex index.html.var index.html | 12 DirectoryIndex index.html.var index.html |
13 DocumentRoot "/home/bos/hg/hgbook/en/html" | 13 DocumentRoot "/home/bos/hg/hgbook/en/html" |
14 | 14 |
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 | |
37 | |
15 # Actively redirect requests via a ServerAlias to the canonical hostname. | 38 # Actively redirect requests via a ServerAlias to the canonical hostname. |
16 RewriteEngine On | 39 RewriteEngine On |
17 RewriteCond %{HTTP_HOST} !=www.hgbook.org | 40 RewriteCond %{HTTP_HOST} !=hgbook.red-bean.com |
18 RewriteRule ^(.*) http://www.hgbook.org$1 [R] | 41 RewriteRule ^(.*) http://hgbook.red-bean.com$1 [R] |
19 | 42 |
20 <Location "/"> | 43 <Location "/"> |
21 SetHandler python-program | 44 SetHandler python-program |
22 # hg clone http://bitbucket.org/mirror/django-trunk/ | 45 # hg clone http://bitbucket.org/mirror/django-trunk/ |
23 PythonPath "['/home/bos/hg/django-trunk', '/home/bos/hg/hgbook/web'] + sys.path" | 46 PythonPath "['/home/bos/hg/django-trunk', '/home/bos/hg/hgbook/web'] + sys.path" |