Apache conf

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<VirtualHost *:80>
DocumentRoot D:/www/site/
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE ogik.settings
PythonDebug Off
PythonPath "['D:/www/site', 'C:/usr/Python25/Lib/site-packages/django'] + sys.path"
</Location>
<Location "/media">
SetHandler None
</Location>
<LocationMatch "\.(jpg|gif|png)$">
SetHandler None
</LocationMatch>
ErrorLog logs/newogik/error.log
#ErrorDocument 404 /err404b.htm2
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%t %{Referer}i -> %U" referer
LogFormat "%t %h %{User-agent}i" agent
CustomLog logs/newogik/referer.log referer
CustomLog logs/newogik/agent.log agent
CustomLog logs/newogik/access.log combined
</VirtualHost>