| /trunk/reviewboard/contrib/conf/apache-modpython.conf.in r1400 | /trunk/reviewboard/contrib/conf/apache-modpython.conf.in r1574 | ||
| 1 | <VirtualHost *:80> | 1 | <VirtualHost *:80> |
|---|---|---|---|
| 2 | ServerName example.com | 2 | ServerName @sitedomain@ |
| 3 | DocumentRoot @pythondir@/reviewboard/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 "['@djangodir@'] + ['@pythondir@/reviewboard'] + ['@pythondir@/djblets'] + sys.path" | 10 | PythonPath "['@sitedir@/conf'] + sys.path" |
| 11 | SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings | 11 | SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings |
| 12 | SetHandler mod_python | 12 | SetHandler mod_python |
| 13 | PythonHandler django.core.handlers.modpython | 13 | PythonHandler django.core.handlers.modpython |
| 14 | PythonAutoReload Off | 14 | PythonAutoReload Off |
| 15 | PythonDebug Off | 15 | PythonDebug Off |
| 16 | # If you run multiple mod_python sites in the same apache | 16 | # Used to run multiple mod_python sites in the same apache |
| 17 | # instonce, uncomment this line: | 17 | PythonInterpreter reviewboard_@siteid@ |
| 18 | # PythonInterpreter reviewboard | ||
| 19 | </Location> | 18 | </Location> |
| 20 | 19 | ||
| 21 | # Serve static media without running it through mod_python | 20 | # Serve static media without running it through mod_python |
| 22 | # (overrides the above) | 21 | # (overrides the above) |
| 23 | <Location "/media"> | 22 | <Location "/media"> |
| 24 | SetHandler None | 23 | SetHandler None |
| 25 | </Location> | 24 | </Location> |
| 26 | <Location "/errordocs"> | 25 | <Location "/errordocs"> |
| 27 | SetHandler None | 26 | SetHandler None |
| 28 | </Location> | 27 | </Location> |
| 29 | 28 | ||
| 30 | # Alias static media requests to filesystem | 29 | # Alias static media requests to filesystem |
| 31 | Alias /media @pythondir@/reviewboard/htdocs/media | 30 | Alias /media @sitedir@/htdocs/media |
| 32 | Alias /errordocs @pythondir@/reviewboard/htdocs/errordocs | 31 | Alias /errordocs @sitedir@/htdocs/errordocs |
| 33 | </VirtualHost> | 32 | </VirtualHost> |