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