hs.hsadmin/hsarback/src/de/hsadmin/mods/dom/httpd-vhost-dynamic.jtpl

106 lines
3.2 KiB
Plaintext
Raw Normal View History

2012-09-20 17:21:04 +02:00
<!-- BEGIN: main -->#
# This file is managed by HSAdmin.
# Do not edit manually. Changes will be overwritten.
#
<VirtualHost {DOM_IPNUMBER}:80 {DOM_IPNUMBEREX}:80>
2011-07-15 15:45:37 +02:00
ServerName {DOM_HOSTNAME}
ServerAlias *.{DOM_HOSTNAME}
ServerAdmin webmaster@{DOM_HOSTNAME}
2011-07-15 15:45:37 +02:00
SuexecUserGroup {DOM_USERNAME} {PAC}
DocumentRoot /home/doms/{DOM_HOSTNAME}/htdocs
Alias /cgi-bin/ /home/doms/{DOM_HOSTNAME}/cgi/
Alias /fastcgi-bin/ /home/doms/{DOM_HOSTNAME}/fastcgi/
<Directory />
Options -ExecCGI {INCLUDES} {INDEXES} {MULTIVIEWS} +SymLinksIfOwnerMatch
2011-07-15 15:45:37 +02:00
</Directory>
<Directory /home/doms/{DOM_HOSTNAME}/>
AllowOverride AuthConfig FileInfo Indexes Limit
2011-07-15 15:45:37 +02:00
</Directory>
<Location /cgi-bin/>
2011-07-15 15:45:37 +02:00
SetHandler cgi-script
Options +ExecCGI {INCLUDES} -Indexes -MultiViews +SymLinksIfOwnerMatch
</Location>
2011-07-15 15:45:37 +02:00
<Location /fastcgi-bin/>
2011-07-15 15:45:37 +02:00
SetHandler fcgid-script
Options +ExecCGI {INCLUDES} -Indexes -MultiViews +SymLinksIfOwnerMatch
</Location>
2011-07-15 15:45:37 +02:00
RewriteEngine On
RewriteOptions Inherit
2012-10-30 10:40:57 +01:00
2011-07-15 15:45:37 +02:00
RewriteCond %{REQUEST_URI} !^/cgi-bin/
RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:[0-9]+)?$ [novary]
2012-10-30 10:40:57 +01:00
RewriteCond /home/doms/{DOM_HOSTNAME}/subs/${tolower:%1} -d
RewriteRule ^(.*) /home/doms/{DOM_HOSTNAME}/subs/${tolower:%1}$1 [last]
2012-09-20 18:16:40 +02:00
2012-10-30 10:40:57 +01:00
{NOHTDOCSFALLBACKHTTP}
2012-09-20 18:16:40 +02:00
AddType application/x-httpd-php .php .php5 .php4 .php3
2011-07-15 15:45:37 +02:00
Action application/x-httpd-php /fastcgi-bin/phpstub
</VirtualHost>
<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
Alias /cgi-bin/ /home/doms/{DOM_HOSTNAME}/cgi-ssl/
Alias /fastcgi-bin/ /home/doms/{DOM_HOSTNAME}/fastcgi-ssl/
<Directory />
SSLRequireSSL On
Options -ExecCGI {INCLUDES} {INDEXES} {MULTIVIEWS} +SymLinksIfOwnerMatch
2011-07-15 15:45:37 +02:00
</Directory>
<Directory /home/doms/{DOM_HOSTNAME}/>
AllowOverride AuthConfig FileInfo Indexes Limit
</Directory>
<Location /cgi-bin/>
SetHandler cgi-script
Options +ExecCGI {INCLUDES} -Indexes -MultiViews +SymLinksIfOwnerMatch
2011-07-15 15:45:37 +02:00
</Location>
<Location /fastcgi-bin/>
SetHandler fcgid-script
Options +ExecCGI {INCLUDES} -Indexes -MultiViews +SymLinksIfOwnerMatch
2011-07-15 15:45:37 +02:00
</Location>
RewriteEngine On
RewriteOptions Inherit
2011-07-15 15:45:37 +02:00
RewriteCond %{REQUEST_URI} !^/cgi-bin/
RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:[0-9]+)?$ [novary]
2011-07-15 15:45:37 +02:00
RewriteCond /home/doms/{DOM_HOSTNAME}/subs-ssl/${tolower:%1} -d
2012-10-30 10:40:57 +01:00
RewriteRule ^(.*) /home/doms/{DOM_HOSTNAME}/subs-ssl/${tolower:%1}$1 [last]
2012-09-20 18:16:40 +02:00
2012-10-30 10:40:57 +01:00
{NOHTDOCSFALLBACKHTTPS}
2012-09-20 17:21:04 +02:00
AddType application/x-httpd-php .php .php5 .php4 .php3
2011-07-15 15:45:37 +02:00
Action application/x-httpd-php /fastcgi-bin/phpstub
</VirtualHost>
2011-07-21 16:53:26 +02:00
<!-- END: main -->