Edgewall Software

Ticket #6811: default

File default, 1.7 KB (added by ronny.forberger@…, 4 years ago)

apache2 mod_python configuration directives

Line 
1NameVirtualHost *
2<VirtualHost *>
3        ServerAdmin webmaster@localhost
4
5        <Directory /var/www/>
6                Options Indexes FollowSymLinks MultiViews
7                AllowOverride None
8                Order allow,deny
9                allow from all
10                # This directive allows us to have apache2's default start page
11                # in /apache2-default/, but still have / go to the right place
12                RedirectMatch ^/$ /apache2-default/
13        </Directory>
14
15        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
16        <Directory "/usr/lib/cgi-bin">
17                AllowOverride None
18                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
19                Order allow,deny
20                Allow from all
21        </Directory>
22
23        ErrorLog /var/log/apache2/error.log
24
25        # Possible values include: debug, info, notice, warn, error, crit,
26        # alert, emerg.
27        LogLevel warn
28
29        CustomLog /var/log/apache2/access.log combined
30        ServerSignature On
31
32        Alias /doc/ "/usr/share/doc/"
33        <Directory "/usr/share/doc/">
34                Options Indexes MultiViews FollowSymLinks
35                AllowOverride None
36                Order deny,allow
37                Deny from all
38                Allow from 127.0.0.0/255.0.0.0 ::1/128
39        </Directory>
40
41        <Location />
42            SetHandler mod_python
43
44            PythonPath "['/usr/local/trac/trac-0.11b1/lib/python2.4/site-packages/'] + sys.path"
45             
46               
47            PythonHandler trac.web.modpython_frontend
48            PythonOption TracEnvParentDir /var/lib/trac-standard
49            PythonOption TracUriRoot /
50            SetEnv PYTHON_EGG_CACHE '/tmp'
51            PythonDebug on
52
53            PythonInterpreter main_interpreter                   
54            Order Deny,Allow
55            Deny from All
56            Allow from All
57
58        </Location>
59
60        <IfModule mod_dir.c>
61            DirectoryIndex index.html index.cgi
62        </IfModule>
63
64
65</VirtualHost>