sample mod_python vhost setup
1 <VirtualHost *:80>
2 ServerAdmin xxxxx@xxxxxx.xxx
3 ServerName xxx.xxxxxxxx.xxxx
4 DocumentRoot /usr/local/www/apache22/data/XXXXXXX
5
6 <Location "/">
7 SetHandler python-program
8 PythonHandler django.core.handlers.modpython
9 SetEnv DJANGO_SETTINGS_MODULE usc.settings
10 PythonDebug On
11 PythonPath "['/path/to/my/django/app'] + sys.path"
12 PythonInterpreter my_super_shiny_interpreter
13 </Location>
14
15 <Location "/media">
16 SetHandler None
17 </Location>
18
19 ErrorLog /var/log/apache22/xxxx.xxxxx.xxxxx-error.log
20 CustomLog /var/log/apache22/xxxx.xxxx.xxxxx-access.log combined
21 ServerSignature Off
22 </VirtualHost>
Pasted by Wu on
marzo 10, 2010 at 11:03 |
Lang: text |
(22 lines of code)