2012-06-12 18:17:10 +02:00
|
|
|
<!-- BEGIN: main --><VirtualHost {DOM_IPNUMBER}:80 {DOM_IPNUMBEREX}:80>
|
2011-07-15 15:45:37 +02:00
|
|
|
|
|
|
|
ServerName {DOM_HOSTNAME}
|
|
|
|
ServerAlias *.{DOM_HOSTNAME}
|
|
|
|
ServerAdmin {DOM_USERNAME}@{HIVE}.hostsharing.net
|
|
|
|
|
|
|
|
SuexecUserGroup {DOM_USERNAME} {PAC}
|
|
|
|
|
|
|
|
DocumentRoot /home/doms/{DOM_HOSTNAME}/htdocs
|
|
|
|
|
|
|
|
<Directory />
|
|
|
|
Options -ExecCGI +IncludesNOEXEC +Indexes +MultiViews +SymLinksIfOwnerMatch
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory /home/doms/{DOM_HOSTNAME}/>
|
|
|
|
AllowOverride AuthConfig FileInfo Indexes Limit
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Location /cgi-bin/>
|
2011-07-20 14:37:10 +02:00
|
|
|
Redirect 501 /
|
2011-07-15 15:45:37 +02:00
|
|
|
</Location>
|
|
|
|
|
|
|
|
<Location /fastcgi-bin/>
|
2011-07-20 14:37:10 +02:00
|
|
|
Redirect 501 /
|
2011-07-15 15:45:37 +02:00
|
|
|
</Location>
|
|
|
|
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteOptions Inherit
|
2012-08-15 12:54:47 +02:00
|
|
|
|
2011-07-15 15:45:37 +02:00
|
|
|
RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:80)?$ [novary]
|
|
|
|
RewriteCond /home/doms/{DOM_HOSTNAME}/subs/${tolower:%1} -d
|
|
|
|
RewriteRule ^(.*) /home/doms/{DOM_HOSTNAME}/subs/${tolower:%1}$1 [last]
|
|
|
|
|
2012-08-15 12:54:47 +02:00
|
|
|
<!-- BEGIN: nosubdomainfallbackforhttp --> RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:80)?$ [novary]
|
|
|
|
RewriteCond /home/doms/{DOM_HOSTNAME}/subs/${tolower:%1} !-d
|
|
|
|
RewriteRule ^(.*) - [redirect=404,last]
|
|
|
|
|
|
|
|
<!-- END: nosubdomainfallbackforhttp --></VirtualHost>
|
2011-07-15 15:45:37 +02:00
|
|
|
|
2011-07-20 14:11:43 +02:00
|
|
|
<VirtualHost {DOM_IPNUMBER}:443 {DOM_IPNUMBEREX}:443>
|
2011-07-15 15:45:37 +02:00
|
|
|
|
|
|
|
ServerName {DOM_HOSTNAME}
|
|
|
|
ServerAlias *.{DOM_HOSTNAME}
|
|
|
|
ServerAdmin {DOM_USERNAME}@{HIVE}.hostsharing.net
|
|
|
|
|
|
|
|
SuexecUserGroup {DOM_USERNAME} {PAC}
|
|
|
|
|
|
|
|
SSLEngine On
|
|
|
|
SSLCertificateFile /etc/apache2/pems/default.pem
|
|
|
|
SSLCertificateChainFile /etc/apache2/pems/default.chain.pem
|
2012-01-04 13:27:05 +01:00
|
|
|
SSLCertificateFile /etc/apache2/pems/{PAC}.pem
|
|
|
|
SSLCertificateChainFile /etc/apache2/pems/{PAC}.chain.pem
|
2011-07-15 15:45:37 +02:00
|
|
|
|
|
|
|
DocumentRoot /home/doms/{DOM_HOSTNAME}/htdocs-ssl
|
|
|
|
|
|
|
|
<Directory />
|
|
|
|
SSLRequireSSL On
|
|
|
|
Options -ExecCGI +IncludesNOEXEC +Indexes +MultiViews +SymLinksIfOwnerMatch
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory /home/doms/{DOM_HOSTNAME}/>
|
|
|
|
AllowOverride AuthConfig FileInfo Indexes Limit
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Location /cgi-bin/>
|
2011-07-20 14:37:10 +02:00
|
|
|
Redirect 501 /
|
2011-07-15 15:45:37 +02:00
|
|
|
</Location>
|
|
|
|
|
|
|
|
<Location /fastcgi-bin/>
|
2011-07-20 14:37:10 +02:00
|
|
|
Redirect 501 /
|
2011-07-15 15:45:37 +02:00
|
|
|
</Location>
|
|
|
|
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteOptions Inherit
|
2012-08-15 12:54:47 +02:00
|
|
|
|
2011-07-15 15:45:37 +02:00
|
|
|
RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:443)?$ [novary]
|
|
|
|
RewriteCond /home/doms/{DOM_HOSTNAME}/subs-ssl/${tolower:%1} -d
|
|
|
|
RewriteRule ^(.*) /home/doms/{DOM_HOSTNAME}/subs-ssl/${tolower:%1}$1 [last]
|
|
|
|
|
2012-08-15 12:54:47 +02:00
|
|
|
<!-- BEGIN: nosubdomainfallbackforhttps --> RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:443)?$ [novary]
|
|
|
|
RewriteCond /home/doms/{DOM_HOSTNAME}/subs-ssl/${tolower:%1} !-d
|
|
|
|
RewriteRule ^(.*) - [redirect=404,last]
|
|
|
|
|
|
|
|
<!-- END: nosubdomainfallbackforhttps --></VirtualHost>
|
2011-07-21 16:53:26 +02:00
|
|
|
<!-- END: main -->
|