blob: d6dc16100ca09045ecf2eb7c7474c844ddbde464 (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
<VirtualHost *:80>
ServerName piny.be
DocumentRoot /srv/www/piny.be
<Directory />
Options Indexes FollowSymLinks MultiViews
AllowOverride None
</Directory>
Alias /js /usr/share/javascript
RedirectMatch 301 ^/$ http://piny.be/piny-hosting/
Include /etc/apache2/piny/www
</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>
Alias /js /usr/share/javascript
RedirectMatch 301 ^/$ http://piny.be/piny-hosting/
SSLEngine On
SSLCertificateFile /etc/ssl/private/secure.piny.be.pem
SSLCertificateChainFile /etc/ssl/private/GandiStandardSSLCA.pem
Include /etc/apache2/piny/www
</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
RedirectMatch 301 ^/$ http://piny.be/
<Directory />
SSLRequireSSL
Options Indexes FollowSymLinks MultiViews
AllowOverride None
</Directory>
<Directory "/srv/www/secure.piny.be/write">
SetHandler cgi-script
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
</Directory>
<Directory "/usr/lib/cgi-bin/piny/auth">
AuthPAM_Enabled on
AuthGROUP_Enabled off # doesn't work with valid-user for some reason
AuthPAM_FallThrough off
AuthBasicAuthoritative off
AuthType Basic
AuthName "User account for piny.be needed."
Require valid-user
</Directory>
ScriptAlias /cgit /usr/lib/cgi-bin/cgit.cgi
ScriptAlias /piny-newuser /usr/lib/cgi-bin/piny/newuser.cgi
ScriptAlias /piny-validate /usr/lib/cgi-bin/piny/checkconstraint.cgi
ScriptAlias /auth /usr/lib/cgi-bin/piny/auth
SSLEngine On
SSLCertificateFile /etc/ssl/private/secure.piny.be.pem
SSLCertificateChainFile /etc/ssl/private/GandiStandardSSLCA.pem
Include /etc/apache2/piny/secure
</VirtualHost>
|