My favorites | Sign in
Logo
          
Changes to /trunk/reviewboard/contrib/conf/apache-modpython.conf.in
r1574 vs. r1786   Edit
  Compare: vs.   Format:
Revision r1786
Go to: 
/trunk/reviewboard/contrib/conf/apache-modpython.conf.in   r1574 /trunk/reviewboard/contrib/conf/apache-modpython.conf.in   r1786
1 <VirtualHost *:80> 1 <VirtualHost *:80>
2 ServerName @sitedomain@ 2 ServerName @sitedomain@
3 DocumentRoot @sitedir@/htdocs 3 DocumentRoot @sitedir@/htdocs
4 4
5 # Error handlers 5 # Error handlers
6 ErrorDocument 500 /errordocs/500.html 6 ErrorDocument 500 /errordocs/500.html
7 7
8 # Serve django pages 8 # Serve django pages
9 <Location "/"> 9 <Location "/">
10 PythonPath "['@sitedir@/conf'] + sys.path" 10 PythonPath "['@sitedir@/conf'] + sys.path"
11 SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings 11 SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
12 SetEnv PYTHON_EGG_CACHE @sitedir@/tmp/egg_cache
12 SetHandler mod_python 13 SetHandler mod_python
13 PythonHandler django.core.handlers.modpython 14 PythonHandler django.core.handlers.modpython
14 PythonAutoReload Off 15 PythonAutoReload Off
15 PythonDebug Off 16 PythonDebug Off
16 # Used to run multiple mod_python sites in the same apache 17 # Used to run multiple mod_python sites in the same apache
17 PythonInterpreter reviewboard_@siteid@ 18 PythonInterpreter reviewboard_@siteid@
18 </Location> 19 </Location>
19 20
20 # Serve static media without running it through mod_python 21 # Serve static media without running it through mod_python
21 # (overrides the above) 22 # (overrides the above)
22 <Location "/media"> 23 <Location "/media">
23 SetHandler None 24 SetHandler None
24 </Location> 25 </Location>
25 <Location "/errordocs"> 26 <Location "/errordocs">
26 SetHandler None 27 SetHandler None
27 </Location> 28 </Location>
28 29
30 <Directory "@sitedir@/htdocs">
31 AllowOverride All
32 </Directory>
33
29 # Alias static media requests to filesystem 34 # Alias static media requests to filesystem
30 Alias /media @sitedir@/htdocs/media 35 Alias /media @sitedir@/htdocs/media
31 Alias /errordocs @sitedir@/htdocs/errordocs 36 Alias /errordocs @sitedir@/htdocs/errordocs
32 </VirtualHost> 37 </VirtualHost>
Hosted by Google Code