106 lines
3.2 KiB
Plaintext
106 lines
3.2 KiB
Plaintext
|
<!-- BEGIN: main -->#
|
||
|
# This file is managed by HSAdmin.
|
||
|
# Do not edit manually. Changes will be overwritten.
|
||
|
#
|
||
|
|
||
|
<VirtualHost {DOM_IPNUMBER}:80 {DOM_IPNUMBEREX}:80>
|
||
|
|
||
|
ServerName {DOM_HOSTNAME}
|
||
|
ServerAlias *.{DOM_HOSTNAME}
|
||
|
ServerAdmin webmaster@{DOM_HOSTNAME}
|
||
|
|
||
|
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
|
||
|
</Directory>
|
||
|
|
||
|
<Directory /home/doms/{DOM_HOSTNAME}/>
|
||
|
AllowOverride AuthConfig FileInfo Indexes Limit
|
||
|
</Directory>
|
||
|
|
||
|
<Location /cgi-bin/>
|
||
|
SetHandler cgi-script
|
||
|
Options +ExecCGI {INCLUDES} -Indexes -MultiViews +SymLinksIfOwnerMatch
|
||
|
</Location>
|
||
|
|
||
|
<Location /fastcgi-bin/>
|
||
|
SetHandler fcgid-script
|
||
|
Options +ExecCGI {INCLUDES} -Indexes -MultiViews +SymLinksIfOwnerMatch
|
||
|
</Location>
|
||
|
|
||
|
RewriteEngine On
|
||
|
RewriteOptions Inherit
|
||
|
|
||
|
RewriteCond %{REQUEST_URI} !^/cgi-bin/
|
||
|
RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
|
||
|
RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:[0-9]+)?$ [novary]
|
||
|
RewriteCond /home/doms/{DOM_HOSTNAME}/subs/${tolower:%1} -d
|
||
|
RewriteRule ^(.*) /home/doms/{DOM_HOSTNAME}/subs/${tolower:%1}$1 [last]
|
||
|
|
||
|
{NOHTDOCSFALLBACKHTTP}
|
||
|
|
||
|
AddType application/x-httpd-php .php .php5 .php4 .php3
|
||
|
Action application/x-httpd-php /fastcgi-bin/phpstub
|
||
|
|
||
|
</VirtualHost>
|
||
|
|
||
|
<VirtualHost {DOM_IPNUMBER}:443 {DOM_IPNUMBEREX}:443>
|
||
|
|
||
|
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
|
||
|
SSLCertificateFile /etc/apache2/pems/{PAC}.pem
|
||
|
SSLCertificateChainFile /etc/apache2/pems/{PAC}.chain.pem
|
||
|
|
||
|
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
|
||
|
</Directory>
|
||
|
|
||
|
<Directory /home/doms/{DOM_HOSTNAME}/>
|
||
|
AllowOverride AuthConfig FileInfo Indexes Limit
|
||
|
</Directory>
|
||
|
|
||
|
<Location /cgi-bin/>
|
||
|
SetHandler cgi-script
|
||
|
Options +ExecCGI {INCLUDES} -Indexes -MultiViews +SymLinksIfOwnerMatch
|
||
|
</Location>
|
||
|
|
||
|
<Location /fastcgi-bin/>
|
||
|
SetHandler fcgid-script
|
||
|
Options +ExecCGI {INCLUDES} -Indexes -MultiViews +SymLinksIfOwnerMatch
|
||
|
</Location>
|
||
|
|
||
|
RewriteEngine On
|
||
|
RewriteOptions Inherit
|
||
|
|
||
|
RewriteCond %{REQUEST_URI} !^/cgi-bin/
|
||
|
RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
|
||
|
RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:[0-9]+)?$ [novary]
|
||
|
RewriteCond /home/doms/{DOM_HOSTNAME}/subs-ssl/${tolower:%1} -d
|
||
|
RewriteRule ^(.*) /home/doms/{DOM_HOSTNAME}/subs-ssl/${tolower:%1}$1 [last]
|
||
|
|
||
|
{NOHTDOCSFALLBACKHTTPS}
|
||
|
|
||
|
AddType application/x-httpd-php .php .php5 .php4 .php3
|
||
|
Action application/x-httpd-php /fastcgi-bin/phpstub
|
||
|
|
||
|
</VirtualHost>
|
||
|
<!-- END: main -->
|