My favorites | Sign in
Logo
          
Changes to /trunk/reviewboard/contrib/conf/apache-modpython.conf.in
r1786 vs. r1911   Edit
  Compare: vs.   Format:
Revision r1911
Go to: 
/trunk/reviewboard/contrib/conf/apache-modpython.conf.in   r1786 /trunk/reviewboard/contrib/conf/apache-modpython.conf.in   r1911
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 SetEnv PYTHON_EGG_CACHE "@sitedir@/tmp/egg_cache"
13 SetHandler mod_python 13 SetHandler mod_python
14 PythonHandler django.core.handlers.modpython 14 PythonHandler django.core.handlers.modpython
15 PythonAutoReload Off 15 PythonAutoReload Off
16 PythonDebug Off 16 PythonDebug Off
17 # Used to run multiple mod_python sites in the same apache 17 # Used to run multiple mod_python sites in the same apache
18 PythonInterpreter reviewboard_@siteid@ 18 PythonInterpreter reviewboard_@siteid@
19 </Location> 19 </Location>
20 20
21 # Serve static media without running it through mod_python 21 # Serve static media without running it through mod_python
22 # (overrides the above) 22 # (overrides the above)
23 <Location "/media"> 23 <Location "/media">
24 SetHandler None 24 SetHandler None
25 </Location> 25 </Location>
26 <Location "/errordocs"> 26 <Location "/errordocs">
27 SetHandler None 27 SetHandler None
28 </Location> 28 </Location>
29 29
30 <Directory "@sitedir@/htdocs"> 30 <Directory "@sitedir@/htdocs">
31 AllowOverride All 31 AllowOverride All
32 </Directory> 32 </Directory>
33 33
34 # Alias static media requests to filesystem 34 # Alias static media requests to filesystem
35 Alias /media @sitedir@/htdocs/media 35 Alias /media @sitedir@/htdocs/media
36 Alias /errordocs @sitedir@/htdocs/errordocs 36 Alias /errordocs @sitedir@/htdocs/errordocs
37 </VirtualHost> 37 </VirtualHost>
Hosted by Google Code