1 | NameVirtualHost *:80 |
---|
2 | <VirtualHost *:80> |
---|
3 | ServerAdmin webmaster@localhost |
---|
4 | |
---|
5 | DocumentRoot /var/www/ |
---|
6 | <Directory /var/www/> |
---|
7 | Options Indexes FollowSymLinks MultiViews ExecCGI |
---|
8 | AllowOverride None |
---|
9 | Order allow,deny |
---|
10 | allow from all |
---|
11 | # This directive allows us to have apache2's default start page |
---|
12 | # in /apache2-default/, but still have / go to the right place |
---|
13 | #RedirectMatch ^/$ /apache2-default/ |
---|
14 | #Redirect / https://sipb-xen-dev.mit.edu/ |
---|
15 | #RedirectMatch ^/(!?trac) https://sipb-xen-dev.mit.edu/ |
---|
16 | </Directory> |
---|
17 | |
---|
18 | RewriteEngine On |
---|
19 | #RewriteRule ^/trac - [L] |
---|
20 | RewriteRule ^/trac.fcgi(.*) - [L] |
---|
21 | RewriteRule ^/trac/chrome/common(.*) /usr/share/trac/htdocs$1 [L] |
---|
22 | RewriteRule ^/trac/login(.*) https://sipb-xen-dev.mit.edu/trac/login$1 [L] |
---|
23 | RewriteRule ^/trac(.*) /var/www/trac/trac.fcgi$1 [L] |
---|
24 | RewriteRule ^/sipb-xen - [L] |
---|
25 | RewriteRule ^(.*) https://sipb-xen-dev.mit.edu$1 |
---|
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 | #Redirect / https://sipb-xen-dev.mit.edu/ |
---|
34 | </Directory> |
---|
35 | |
---|
36 | ErrorLog /var/log/apache2/error.log |
---|
37 | |
---|
38 | # Possible values include: debug, info, notice, warn, error, crit, |
---|
39 | # alert, emerg. |
---|
40 | LogLevel notice |
---|
41 | |
---|
42 | CustomLog /var/log/apache2/access.log combined |
---|
43 | ServerSignature On |
---|
44 | |
---|
45 | Alias /doc/ "/usr/share/doc/" |
---|
46 | <Directory "/usr/share/doc/"> |
---|
47 | Options Indexes MultiViews FollowSymLinks |
---|
48 | AllowOverride None |
---|
49 | Order deny,allow |
---|
50 | Deny from all |
---|
51 | Allow from 127.0.0.0/255.0.0.0 ::1/128 |
---|
52 | </Directory> |
---|
53 | |
---|
54 | </VirtualHost> |
---|