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