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     Alias /cgi-bin/ /home/doms/{DOM_HOSTNAME}/cgi/
17     Alias /fastcgi-bin/ /home/doms/{DOM_HOSTNAME}/fastcgi/
18
19     <Directory />
20         Options -ExecCGI +IncludesNOEXEC +Indexes +MultiViews +SymLinksIfOwnerMatch
21     </Directory>
22
23     <Directory /home/doms/{DOM_HOSTNAME}/>
24        AllowOverride AuthConfig FileInfo Indexes Limit
25     </Directory>
26
968560 27     <Directory /home/doms/{DOM_HOSTNAME}/cgi-bin/>
c16d92 28         SetHandler cgi-script
PH 29         Options +ExecCGI -Indexes -MultiViews
968560 30     </Directory>
c16d92 31
968560 32     <Directory /home/doms/{DOM_HOSTNAME}/fastcgi-bin/>
c16d92 33         SetHandler fcgid-script
PH 34         Options +ExecCGI -Indexes -MultiViews
968560 35     </Directory>
c16d92 36
PH 37     RewriteEngine On
38     RewriteOptions Inherit
fedfa6 39     
c16d92 40     RewriteCond %{REQUEST_URI} !^/cgi-bin/
PH 41     RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
42     RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:80)?$ [novary]
43     RewriteCond /home/doms/{DOM_HOSTNAME}/subs/${tolower:%1} -d
44     RewriteRule ^(.*) /home/doms/{DOM_HOSTNAME}/subs/${tolower:%1}$1 [last]
58b9c9 45     
400c14 46 <!-- BEGIN: iterate -->
PH 47     RewriteCond %{REQUEST_URI} !^/cgi-bin/
fedfa6 48     RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
MH 49     RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:80)?$ [novary]
50     RewriteCond /home/doms/{DOM_HOSTNAME}/subs/${tolower:%1} !-d
51     RewriteRule ^(.*) - [redirect=404,last]
58b9c9 52
b9f140 53 <!-- END: iterate -->
PH 54     AddType application/x-httpd-php .php .php5 .php4 .php3
c16d92 55     Action application/x-httpd-php /fastcgi-bin/phpstub
PH 56
57 </VirtualHost>
58
b69031 59 <VirtualHost {DOM_IPNUMBER}:443 {DOM_IPNUMBEREX}:443>
c16d92 60
PH 61     ServerName {DOM_HOSTNAME}
62     ServerAlias *.{DOM_HOSTNAME}
63     ServerAdmin {DOM_USERNAME}@{HIVE}.hostsharing.net
64
65     SuexecUserGroup {DOM_USERNAME} {PAC}
66
67     SSLEngine On
68     SSLCertificateFile /etc/apache2/pems/default.pem
69     SSLCertificateChainFile /etc/apache2/pems/default.chain.pem
984777 70     SSLCertificateFile /etc/apache2/pems/{PAC}.pem
PH 71     SSLCertificateChainFile /etc/apache2/pems/{PAC}.chain.pem
c16d92 72
PH 73     DocumentRoot /home/doms/{DOM_HOSTNAME}/htdocs-ssl
74
75     Alias /cgi-bin/ /home/doms/{DOM_HOSTNAME}/cgi-ssl/
76     Alias /fastcgi-bin/ /home/doms/{DOM_HOSTNAME}/fastcgi-ssl/
77
78     <Directory />
79         SSLRequireSSL On
80         Options -ExecCGI +IncludesNOEXEC +Indexes +MultiViews +SymLinksIfOwnerMatch
81     </Directory>
82
83     <Directory /home/doms/{DOM_HOSTNAME}/>
84         AllowOverride AuthConfig FileInfo Indexes Limit
85     </Directory>
86
87     <Location /cgi-bin/>
88         SetHandler cgi-script
89         Options +ExecCGI -Indexes -MultiViews
90     </Location>
91
92     <Location /fastcgi-bin/>
93         SetHandler fcgid-script
94         Options +ExecCGI -Indexes -MultiViews
95     </Location>
96     
97     RewriteEngine On
98     RewriteOptions Inherit
fedfa6 99
c16d92 100     RewriteCond %{REQUEST_URI} !^/cgi-bin/
PH 101     RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
102     RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:443)?$ [novary]
103     RewriteCond /home/doms/{DOM_HOSTNAME}/subs-ssl/${tolower:%1} -d
104     RewriteRule ^(.*) /home/doms/{DOM_HOSTNAME}/subs-ssl/${tolower:%1}$1 [last]
58b9c9 105     
400c14 106 <!-- BEGIN: nosubdomainfallbackforhttps -->
PH 107     RewriteCond %{REQUEST_URI} !^/cgi-bin/
fedfa6 108     RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
MH 109     RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:443)?$ [novary]
110     RewriteCond /home/doms/{DOM_HOSTNAME}/subs-ssl/${tolower:%1} !-d
111     RewriteRule ^(.*) - [redirect=404,last]
58b9c9 112     
400c14 113 <!-- END: nosubdomainfallbackforhttps -->
PH 114     AddType application/x-httpd-php .php .php5 .php4 .php3
c16d92 115     Action application/x-httpd-php /fastcgi-bin/phpstub
PH 116
117 </VirtualHost>
fc3d6b 118 <!-- END: main -->