1 | NameVirtualHost *
|
---|
2 | <VirtualHost *>
|
---|
3 | ServerAdmin webmaster@localhost
|
---|
4 |
|
---|
5 | DocumentRoot /var/www/
|
---|
6 | <Directory />
|
---|
7 | Options FollowSymLinks
|
---|
8 | AllowOverride None
|
---|
9 | </Directory>
|
---|
10 | <Directory /var/www/>
|
---|
11 | Options Indexes FollowSymLinks MultiViews
|
---|
12 | AllowOverride None
|
---|
13 | Order allow,deny
|
---|
14 | allow from all
|
---|
15 | # This directive allows us to have apache2's default start page
|
---|
16 | # in /apache2-default/, but still have / go to the right place
|
---|
17 | #RedirectMatch ^/$ /apache2-default/
|
---|
18 | </Directory>
|
---|
19 |
|
---|
20 | <Directory /var/www/python/>
|
---|
21 | AddHandler mod_python .py
|
---|
22 | PythonHandler mptest
|
---|
23 | PythonDebug On
|
---|
24 | PythonInterpreter main_interpreter
|
---|
25 | </Directory>
|
---|
26 |
|
---|
27 | ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
|
---|
28 | <Directory "/usr/lib/cgi-bin">
|
---|
29 | AllowOverride None
|
---|
30 | Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
|
---|
31 | Order allow,deny
|
---|
32 | Allow from all
|
---|
33 | </Directory>
|
---|
34 |
|
---|
35 | ErrorLog /var/log/apache2/error.log
|
---|
36 |
|
---|
37 | # Possible values include: debug, info, notice, warn, error, crit,
|
---|
38 | # alert, emerg.
|
---|
39 | LogLevel warn
|
---|
40 |
|
---|
41 | CustomLog /var/log/apache2/access.log combined
|
---|
42 | ServerSignature On
|
---|
43 |
|
---|
44 | Alias /doc/ "/usr/share/doc/"
|
---|
45 | <Directory "/usr/share/doc/">
|
---|
46 | Options Indexes MultiViews FollowSymLinks
|
---|
47 | AllowOverride None
|
---|
48 | Order deny,allow
|
---|
49 | Deny from all
|
---|
50 | Allow from 127.0.0.0/255.0.0.0 ::1/128
|
---|
51 | </Directory>
|
---|
52 |
|
---|
53 | </VirtualHost>
|
---|