changeset 692:8dfdbe1cf982

Update Apache2 configuration.
author Bryan O'Sullivan <bos@serpentine.com>
date Thu, 26 Mar 2009 22:00:32 -0700
parents 4ce9d0754af3
children 0b45854f0b7b
files web/hgbook.conf
diffstat 1 files changed, 26 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/web/hgbook.conf	Thu Mar 26 21:22:03 2009 -0700
+++ b/web/hgbook.conf	Thu Mar 26 22:00:32 2009 -0700
@@ -1,7 +1,7 @@
 # -*- apache -*-
 
 <VirtualHost *:80>
-    ServerName www.hgbook.org
+    ServerName hgbook.red-bean.com
     ServerAdmin bos@serpentine.com
     ErrorLog logs/hgbook-error_log
     # Debian:
@@ -12,10 +12,33 @@
     DirectoryIndex index.html.var index.html
     DocumentRoot "/home/bos/hg/hgbook/en/html"
 
+    Redirect permanent /hgbook.html /index.html
+    Redirect permanent /hgbookch1.html /read/preface.html
+    Redirect permanent /hgbookch2.html /read/a-tour-of-mercurial-the-basics.html
+    Redirect permanent /hgbookch3.html /read/a-tour-of-mercurial-merging-work.html
+    Redirect permanent /hgbookch4.html /read/behind-the-scenes.html
+    Redirect permanent /hgbookch5.html /read/mercurial-in-daily-use.html
+    Redirect permanent /hgbookch6.html /read/file-names-and-pattern-matching.html
+    Redirect permanent /hgbookch6.html /read/managing-releases-and-branchy-development.html
+    Redirect permanent /hgbookch7.html /read/finding-and-fixing-mistakes.html
+    Redirect permanent /hgbookch8.html /read/handling-repository-events-with-hooks.html
+    Redirect permanent /hgbookch9.html /read/customizing-the-output-of-mercurial.html
+    Redirect permanent /hgbookch10.html /read/managing-change-with-mercurial-queues.html
+    Redirect permanent /hgbookch11.html /read/advanced-uses-of-mercurial-queues.html
+    Redirect permanent /hgbookch12.html /read/adding-functionality-with-extensions.html
+    Redirect permanent /hgbookap1.html /read/command-reference.html
+    Redirect permanent /hgbookap2.html /read/mercurial-queues-reference.html
+    Redirect permanent /hgbookap3.html /read/installing-mercurial-from-source.html
+    Redirect permanent /hgbookap4.html /read/open-publication-license.html
+    Redirect permanent /hgbookli1.html /read/index.html
+    Redirect permanent /hgbookli2.html /read/index.html
+    Redirect permanent /hgbookli3.html /read/index.html
+    Redirect permanent /hgbookli4.html /read/index.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]
+    RewriteCond %{HTTP_HOST} !=hgbook.red-bean.com
+    RewriteRule ^(.*) http://hgbook.red-bean.com$1 [R]
 
     <Location "/">
         SetHandler python-program