summaryrefslogtreecommitdiff
path: root/etc/apache2/sites-available/001-piny
blob: e28397784b942a62b4b9717dbc0e2e5c4cc45bca (plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<VirtualHost *:80>
	ServerName piny.svcs.cs.pdx.edu

	DocumentRoot /srv/www/piny.svcs.cs.pdx.edu

	<Directory />
		Options Indexes FollowSymLinks MultiViews
		AllowOverride None
	</Directory>

	RedirectMatch 301 ^/$ http://piny.svcs.cs.pdx.edu/piny-web/	
</VirtualHost>

<VirtualHost *:80>
	ServerName secure.piny.svcs.cs.pdx.edu
	RedirectMatch 301 (.*) https://secure.piny.svcs.cs.pdx.edu$1
</VirtualHost>

<VirtualHost *:443>
	ServerName secure.piny.svcs.cs.pdx.edu
	DocumentRoot /srv/www/secure.piny.svcs.cs.pdx.edu

	<Directory />
		Options Indexes FollowSymLinks MultiViews
		AllowOverride None
	</Directory>

	RedirectMatch 301 ^/$ http://piny.svcs.cs.pdx.edu/piny-web/	

	SSLEngine On
	SSLCertificateFile /etc/ssl/private/wildcard.piny.svcs.cs.pdx.edu.pem
</VirtualHost>

<VirtualHost *:80>
	ServerName cgi.piny.svcs.cs.pdx.edu
	RedirectMatch 301 (.*) https://cgi.piny.svcs.cs.pdx.edu$1
</VirtualHost>

<VirtualHost *:443>
	ServerName cgi.piny.svcs.cs.pdx.edu
	DocumentRoot /srv/www/cgi.piny.svcs.cs.pdx.edu

	<Directory "/srv/www/cgi.piny.svcs.cs.pdx.edu">
		SSLRequireSSL
		SetHandler cgi-script
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
	</Directory>

        ScriptAlias /cgi-bin/cgit.cgi /usr/lib/cgi-bin/cgit.cgi

	Include /etc/apache2/piny-enabled

	SSLEngine On
	SSLCertificateFile /etc/ssl/private/wildcard.piny.svcs.cs.pdx.edu.pem
</VirtualHost>