source: vhosts/apache2.conf @ 250

Last change on this file since 250 was 132, checked in by jbarnold, 16 years ago
added virtual host files
File size: 2.4 KB
Line 
1RewriteEngine off
2Redirect /sql https://scripts.mit.edu/~sql
3
4<Location ~ "/(robots\.txt|favicon\.ico)">
5        RewriteEngine On
6        RewriteBase /~scripts
7        RewriteCond %{REQUEST_FILENAME} !-f
8        RewriteRule .*(favicon\.ico) $1 [L,NS]
9        RewriteCond %{REQUEST_FILENAME} !-f
10        RewriteRule .*(robots\.txt) $1 [L,NS]
11</Location>
12
13#NameVirtualHost *:80
14#NameVirtualHost *:443
15#NameVirtualHost 18.181.0.46:80
16#NameVirtualHost 18.181.0.46:443
17NameVirtualHost 18.181.0.50:80
18NameVirtualHost 18.181.0.50:443
19
20Alias /heartbeat /afs/athena.mit.edu/contrib/scripts/web_scripts/heartbeat
21Alias /src /afs/athena.mit.edu/contrib/scripts/src
22
23<VirtualHost _default_:80>
24        ServerName vhosts.mit.edu
25        DocumentRoot /afs/athena.mit.edu/contrib/scripts/vhosts/server.php
26</VirtualHost>
27
28<VirtualHost 18.181.0.50:80>
29        ServerName scripts-cert.mit.edu
30        ServerAlias scripts-cert
31        DocumentRoot /afs/athena.mit.edu/contrib/scripts/web_scripts/home
32        SuExecUserGroup scripts users
33        UserDir web_scripts
34        RewriteEngine off
35</VirtualHost>
36
37<VirtualHost *:80>
38        ServerName scripts.mit.edu
39        ServerAlias scripts scripts-test.mit.edu scripts-test
40        DocumentRoot /afs/athena.mit.edu/contrib/scripts/web_scripts/home
41        SuExecUserGroup scripts users
42        UserDir web_scripts
43        RewriteEngine off
44</VirtualHost>
45
46<IfModule mod_ssl.c>
47        SSLCertificateFile /etc/pki/tls/certs/cert-new.pem
48        SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
49        SSLCACertificateFile /etc/pki/tls/certs/ca.pem
50        SSLVerifyClient none
51        SSLOptions +StdEnvVars
52        SSLUserName SSL_CLIENT_S_DN_Email
53        <VirtualHost 18.181.0.50:443>
54                ServerName scripts-cert.mit.edu
55                ServerAlias scripts-cert
56                DocumentRoot /afs/athena.mit.edu/contrib/scripts/web_scripts/home
57                SuExecUserGroup scripts users
58                UserDir web_scripts
59                RewriteEngine off
60                SSLEngine on
61                SSLCertificateFile /etc/pki/tls/certs/scripts-cert-new.pem
62                SSLVerifyClient require
63                SSLVerifyDepth 1
64                SSLOptions +StdEnvVars
65        </VirtualHost>
66        <VirtualHost *:443>
67                ServerName vhosts.mit.edu
68                ServerAlias vhosts
69                DocumentRoot /afs/athena.mit.edu/contrib/scripts/vhosts/server.php
70                RewriteEngine off
71                SSLEngine on
72        </VirtualHost>
73        <VirtualHost *:443>
74                ServerName scripts.mit.edu
75                ServerAlias scripts scripts-test.mit.edu scripts-test
76                DocumentRoot /afs/athena.mit.edu/contrib/scripts/web_scripts/home
77                SuExecUserGroup scripts users
78                UserDir web_scripts
79                RewriteEngine off
80                SSLEngine on
81        </VirtualHost>
82</IfModule>
83
84Include /afs/athena.mit.edu/contrib/scripts/vhosts/conf.d/*.conf
Note: See TracBrowser for help on using the repository browser.