summaryrefslogtreecommitdiff
path: root/pinyconfigs/etc/apache2/sites-available/piny
blob: 05808f47db6227eaa49d7c8c26d0c3688ef36c4a (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
57
58
59
60
61
62
63
<VirtualHost *:80>
	ServerName piny.be

	DocumentRoot /srv/www/piny.be

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

	RedirectMatch 301 ^/$ http://piny.be/piny-web/
</VirtualHost>

<VirtualHost *:80>
	ServerName www.piny.be
	RedirectMatch 301 (.*) http://piny.be$1
</VirtualHost>

<VirtualHost *:443>
	ServerName piny.be
	DocumentRoot /srv/www/piny.be

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

	RedirectMatch 301 ^/$ http://piny.be/piny-web/

	SSLEngine On
	SSLCertificateFile /etc/ssl/private/secure.piny.be.pem
	SSLCACertificateFile /etc/ssl/private/GandiStandardSSLCA.pem
</VirtualHost>

<VirtualHost *:80>
	ServerName secure.piny.be
	RedirectMatch 301 (.*) https://secure.piny.be$1
</VirtualHost>

<VirtualHost *:443>
	ServerName secure.piny.be
	DocumentRoot /srv/www/secure.piny.be

	<Directory "/srv/www/secure.piny.be">
		SSLRequireSSL
		SetHandler cgi-script
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
	</Directory>

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

	Include /etc/apache2/piny-enabled

	SSLEngine On
	SSLCertificateFile /etc/ssl/private/secure.piny.be.pem
	SSLCACertificateFile /etc/ssl/private/GandiStandardSSLCA.pem
</VirtualHost>

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