HSAdmin Backend Domains, E-Mail, Datenbanken
Michael Hierweck
2012-09-20 968560db41934a4c27f66c5130598fe89760336b
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}
968560 10     ServerAdmin webmaster@{DOM_HOSTNAME}
c16d92 11
PH 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
968560 24     <Directory /home/doms/{DOM_HOSTNAME}/cgi-bin/>
1b3c3c 25         Redirect 501 /
968560 26     </Directory>
c16d92 27
968560 28     <Directory /home/doms/{DOM_HOSTNAME}/fastcgi-bin/>
1b3c3c 29         Redirect 501 /
968560 30     </Directory>
c16d92 31
PH 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]
58b9c9 38     
b9f140 39 <!-- BEGIN: iterate -->    RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:80)?$ [novary]
aad187 40     RewriteCond /home/doms/{DOM_HOSTNAME}/subs/${tolower:%1} !-d
MH 41     RewriteRule ^(.*) - [redirect=404,last]
58b9c9 42     
b9f140 43 <!-- END: iterate -->
PH 44 </VirtualHost>
c16d92 45
b69031 46 <VirtualHost {DOM_IPNUMBER}:443 {DOM_IPNUMBEREX}:443>
c16d92 47
PH 48     ServerName {DOM_HOSTNAME}
49     ServerAlias *.{DOM_HOSTNAME}
50     ServerAdmin {DOM_USERNAME}@{HIVE}.hostsharing.net
51
52     SuexecUserGroup {DOM_USERNAME} {PAC}
53
54     SSLEngine On
55     SSLCertificateFile /etc/apache2/pems/default.pem
56     SSLCertificateChainFile /etc/apache2/pems/default.chain.pem
984777 57     SSLCertificateFile /etc/apache2/pems/{PAC}.pem
PH 58     SSLCertificateChainFile /etc/apache2/pems/{PAC}.chain.pem
c16d92 59
PH 60     DocumentRoot /home/doms/{DOM_HOSTNAME}/htdocs-ssl
61
62     <Directory />
63         SSLRequireSSL On
64         Options -ExecCGI +IncludesNOEXEC +Indexes +MultiViews +SymLinksIfOwnerMatch
65     </Directory>
66
67     <Directory /home/doms/{DOM_HOSTNAME}/>
68         AllowOverride AuthConfig FileInfo Indexes Limit
69     </Directory>
70
71     <Location /cgi-bin/>
1b3c3c 72         Redirect 501 /
c16d92 73     </Location>
PH 74
75     <Location /fastcgi-bin/>
1b3c3c 76         Redirect 501 /
c16d92 77     </Location>
PH 78     
79     RewriteEngine On
80     RewriteOptions Inherit
aad187 81     
c16d92 82     RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:443)?$ [novary]
PH 83     RewriteCond /home/doms/{DOM_HOSTNAME}/subs-ssl/${tolower:%1} -d
84     RewriteRule ^(.*) /home/doms/{DOM_HOSTNAME}/subs-ssl/${tolower:%1}$1 [last]
85
aad187 86 <!-- BEGIN: nosubdomainfallbackforhttps -->    RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:443)?$ [novary]
MH 87     RewriteCond /home/doms/{DOM_HOSTNAME}/subs-ssl/${tolower:%1} !-d
88     RewriteRule ^(.*) - [redirect=404,last]
58b9c9 89     
400c14 90 <!-- END: nosubdomainfallbackforhttps -->
PH 91 </VirtualHost>
fc3d6b 92 <!-- END: main -->