hgbook

diff 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 diff
     1.1 --- a/web/hgbook.conf	Tue Mar 10 21:42:19 2009 -0700
     1.2 +++ b/web/hgbook.conf	Wed Nov 25 08:08:20 2009 -0500
     1.3 @@ -1,7 +1,7 @@
     1.4  # -*- apache -*-
     1.5  
     1.6  <VirtualHost *:80>
     1.7 -    ServerName www.hgbook.org
     1.8 +    ServerName hgbook.red-bean.com
     1.9      ServerAdmin bos@serpentine.com
    1.10      ErrorLog logs/hgbook-error_log
    1.11      # Debian:
    1.12 @@ -12,10 +12,33 @@
    1.13      DirectoryIndex index.html.var index.html
    1.14      DocumentRoot "/home/bos/hg/hgbook/en/html"
    1.15  
    1.16 +    Redirect permanent /hgbook.html /index.html
    1.17 +    Redirect permanent /hgbookch1.html /read/preface.html
    1.18 +    Redirect permanent /hgbookch2.html /read/a-tour-of-mercurial-the-basics.html
    1.19 +    Redirect permanent /hgbookch3.html /read/a-tour-of-mercurial-merging-work.html
    1.20 +    Redirect permanent /hgbookch4.html /read/behind-the-scenes.html
    1.21 +    Redirect permanent /hgbookch5.html /read/mercurial-in-daily-use.html
    1.22 +    Redirect permanent /hgbookch6.html /read/file-names-and-pattern-matching.html
    1.23 +    Redirect permanent /hgbookch6.html /read/managing-releases-and-branchy-development.html
    1.24 +    Redirect permanent /hgbookch7.html /read/finding-and-fixing-mistakes.html
    1.25 +    Redirect permanent /hgbookch8.html /read/handling-repository-events-with-hooks.html
    1.26 +    Redirect permanent /hgbookch9.html /read/customizing-the-output-of-mercurial.html
    1.27 +    Redirect permanent /hgbookch10.html /read/managing-change-with-mercurial-queues.html
    1.28 +    Redirect permanent /hgbookch11.html /read/advanced-uses-of-mercurial-queues.html
    1.29 +    Redirect permanent /hgbookch12.html /read/adding-functionality-with-extensions.html
    1.30 +    Redirect permanent /hgbookap1.html /read/command-reference.html
    1.31 +    Redirect permanent /hgbookap2.html /read/mercurial-queues-reference.html
    1.32 +    Redirect permanent /hgbookap3.html /read/installing-mercurial-from-source.html
    1.33 +    Redirect permanent /hgbookap4.html /read/open-publication-license.html
    1.34 +    Redirect permanent /hgbookli1.html /read/index.html
    1.35 +    Redirect permanent /hgbookli2.html /read/index.html
    1.36 +    Redirect permanent /hgbookli3.html /read/index.html
    1.37 +    Redirect permanent /hgbookli4.html /read/index.html
    1.38 +
    1.39      # Actively redirect requests via a ServerAlias to the canonical hostname.
    1.40      RewriteEngine On
    1.41 -    RewriteCond %{HTTP_HOST} !=www.hgbook.org
    1.42 -    RewriteRule ^(.*) http://www.hgbook.org$1 [R]
    1.43 +    RewriteCond %{HTTP_HOST} !=hgbook.red-bean.com
    1.44 +    RewriteRule ^(.*) http://hgbook.red-bean.com$1 [R]
    1.45  
    1.46      <Location "/">
    1.47          SetHandler python-program