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