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