HSAdmin Backend Domains, E-Mail, Datenbanken
Michael Hierweck
2012-08-15 aad18738f37bf2eb573b12f2a18a96c518c7c06e
commit | author | age
389c9f 1 <!-- BEGIN: main --><VirtualHost {DOM_IPNUMBER}:80 {DOM_IPNUMBEREX}:80>
c16d92 2
PH 3     ServerName {DOM_HOSTNAME}
4     ServerAlias *.{DOM_HOSTNAME}
5     ServerAdmin {DOM_USERNAME}@{HIVE}.hostsharing.net
6
7     SuexecUserGroup {DOM_USERNAME} {PAC}
8
9     DocumentRoot /home/doms/{DOM_HOSTNAME}/htdocs
10
11     <Directory />
12         Options -ExecCGI +IncludesNOEXEC +Indexes +MultiViews +SymLinksIfOwnerMatch
13     </Directory>
14
15     <Directory /home/doms/{DOM_HOSTNAME}/>
16        AllowOverride AuthConfig FileInfo Indexes Limit
17     </Directory>
18
19     <Location /cgi-bin/>
1b3c3c 20         Redirect 501 /
c16d92 21     </Location>
PH 22
23     <Location /fastcgi-bin/>
1b3c3c 24         Redirect 501 /
c16d92 25     </Location>
PH 26
27     RewriteEngine On
28     RewriteOptions Inherit
aad187 29     
c16d92 30     RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:80)?$ [novary]
PH 31     RewriteCond /home/doms/{DOM_HOSTNAME}/subs/${tolower:%1} -d
32     RewriteRule ^(.*) /home/doms/{DOM_HOSTNAME}/subs/${tolower:%1}$1 [last]
33
aad187 34 <!-- BEGIN: nosubdomainfallbackforhttp -->    RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:80)?$ [novary]
MH 35     RewriteCond /home/doms/{DOM_HOSTNAME}/subs/${tolower:%1} !-d
36     RewriteRule ^(.*) - [redirect=404,last]
37
38 <!-- END: nosubdomainfallbackforhttp --></VirtualHost>
c16d92 39
b69031 40 <VirtualHost {DOM_IPNUMBER}:443 {DOM_IPNUMBEREX}:443>
c16d92 41
PH 42     ServerName {DOM_HOSTNAME}
43     ServerAlias *.{DOM_HOSTNAME}
44     ServerAdmin {DOM_USERNAME}@{HIVE}.hostsharing.net
45
46     SuexecUserGroup {DOM_USERNAME} {PAC}
47
48     SSLEngine On
49     SSLCertificateFile /etc/apache2/pems/default.pem
50     SSLCertificateChainFile /etc/apache2/pems/default.chain.pem
984777 51     SSLCertificateFile /etc/apache2/pems/{PAC}.pem
PH 52     SSLCertificateChainFile /etc/apache2/pems/{PAC}.chain.pem
c16d92 53
PH 54     DocumentRoot /home/doms/{DOM_HOSTNAME}/htdocs-ssl
55
56     <Directory />
57         SSLRequireSSL On
58         Options -ExecCGI +IncludesNOEXEC +Indexes +MultiViews +SymLinksIfOwnerMatch
59     </Directory>
60
61     <Directory /home/doms/{DOM_HOSTNAME}/>
62         AllowOverride AuthConfig FileInfo Indexes Limit
63     </Directory>
64
65     <Location /cgi-bin/>
1b3c3c 66         Redirect 501 /
c16d92 67     </Location>
PH 68
69     <Location /fastcgi-bin/>
1b3c3c 70         Redirect 501 /
c16d92 71     </Location>
PH 72     
73     RewriteEngine On
74     RewriteOptions Inherit
aad187 75     
c16d92 76     RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:443)?$ [novary]
PH 77     RewriteCond /home/doms/{DOM_HOSTNAME}/subs-ssl/${tolower:%1} -d
78     RewriteRule ^(.*) /home/doms/{DOM_HOSTNAME}/subs-ssl/${tolower:%1}$1 [last]
79
aad187 80 <!-- BEGIN: nosubdomainfallbackforhttps -->    RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:443)?$ [novary]
MH 81     RewriteCond /home/doms/{DOM_HOSTNAME}/subs-ssl/${tolower:%1} !-d
82     RewriteRule ^(.*) - [redirect=404,last]
83     
84 <!-- END: nosubdomainfallbackforhttps --></VirtualHost>
fc3d6b 85 <!-- END: main -->