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