commit | author | age
|
6208e0
|
1 |
# |
PH |
2 |
# This file is managed by HSAdmin. |
|
3 |
# Do not edit manually. Changes will be overwritten. |
|
4 |
# |
|
5 |
|
|
6 |
<VirtualHost ${pac.curINetAddr.inetAddr}:80 ${pac.oldINetAddr.inetAddr}:80> |
|
7 |
ServerName ${dom.name} |
|
8 |
ServerAlias *.${dom.name} |
|
9 |
ServerAdmin webmaster@${dom.name} |
|
10 |
|
|
11 |
SuexecUserGroup ${dom.user.name} ${pac.name} |
|
12 |
|
ee5e33
|
13 |
#if( ${dynamicWeb} ) |
MH |
14 |
PassengerEnabled on |
|
15 |
PassengerUser ${dom.user.name} |
|
16 |
PassengerGroup ${pac.name} |
|
17 |
PassengerAppRoot /home/doms/${dom.name}/app/ |
|
18 |
#end |
|
19 |
|
6208e0
|
20 |
DocumentRoot /home/doms/${dom.name}/htdocs |
PH |
21 |
|
|
22 |
Alias /cgi-bin/ /home/doms/${dom.name}/cgi/ |
|
23 |
Alias /fastcgi-bin/ /home/doms/${dom.name}/fastcgi/ |
|
24 |
|
|
25 |
<Directory /> |
|
26 |
Options -ExecCGI ${includes} ${indexes} ${multiviews} +SymLinksIfOwnerMatch |
|
27 |
</Directory> |
|
28 |
|
|
29 |
<Directory /home/doms/${dom.name}/> |
ee5e33
|
30 |
AllowOverride AuthConfig FileInfo Indexes Limit Options=Includes,Indexes,MultiViews,PassengerNodejs,PassengerPython,PassengerRuby,PassengerAppEnv |
6208e0
|
31 |
</Directory> |
PH |
32 |
|
9d22db
|
33 |
#if( ${dynamicWeb} ) |
6208e0
|
34 |
<Location /cgi-bin/> |
PH |
35 |
SetHandler cgi-script |
|
36 |
Options +ExecCGI ${includes} -Indexes -MultiViews +SymLinksIfOwnerMatch |
|
37 |
</Location> |
ee5e33
|
38 |
#else |
MH |
39 |
<Location /cgi-bin/> |
|
40 |
Redirect 501 / |
|
41 |
</Location> |
|
42 |
#end |
6208e0
|
43 |
|
ee5e33
|
44 |
#if( ${dynamicWeb} ) |
6208e0
|
45 |
<Location /fastcgi-bin/> |
PH |
46 |
SetHandler fcgid-script |
|
47 |
Options +ExecCGI ${includes} -Indexes -MultiViews +SymLinksIfOwnerMatch |
|
48 |
</Location> |
|
49 |
#else |
|
50 |
<Location /fastcgi-bin/> |
|
51 |
Redirect 501 / |
|
52 |
</Location> |
|
53 |
#end |
|
54 |
|
|
55 |
RewriteEngine On |
|
56 |
RewriteOptions Inherit |
|
57 |
|
|
58 |
RewriteCond %{REQUEST_URI} !^/cgi-bin/ |
|
59 |
RewriteCond %{REQUEST_URI} !^/fastcgi-bin/ |
2e99a9
|
60 |
RewriteCond %{HTTP_HOST} ^(.+)\.${dom.name}\.?(:[0-9]+)?$ [novary] |
747bf3
|
61 |
RewriteCond /home/doms/${dom.name}/subs/#[[${tolower:%1} ]]# -d |
PH |
62 |
RewriteRule ^(.*) /home/doms/${dom.name}/subs/#[[${tolower:%1}$1 ]]# [last] |
6208e0
|
63 |
|
PH |
64 |
#if( !${htdocsfallback} ) |
|
65 |
RewriteCond %{REQUEST_URI} !^/cgi-bin/ |
|
66 |
RewriteCond %{REQUEST_URI} !^/fastcgi-bin/ |
747bf3
|
67 |
RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:80)?$ [novary] |
PH |
68 |
RewriteCond /home/doms/${dom.name}/subs/#[[${tolower:%1} ]]# !-d |
6208e0
|
69 |
RewriteRule ^(.*) - [redirect=404,last] |
PH |
70 |
#end |
|
71 |
|
9d22db
|
72 |
#if( ${dynamicWeb} ) |
6208e0
|
73 |
AddType application/x-httpd-php .php .php5 .php4 .php3 |
PH |
74 |
Action application/x-httpd-php /fastcgi-bin/phpstub |
|
75 |
#end |
|
76 |
</VirtualHost> |
|
77 |
|
|
78 |
<VirtualHost ${pac.curINetAddr.inetAddr}:443 ${pac.oldINetAddr.inetAddr}:443> |
|
79 |
ServerName ${dom.name} |
|
80 |
ServerAlias *.${dom.name} |
|
81 |
ServerAdmin ${dom.user.name}@${dom.name} |
|
82 |
|
|
83 |
SuexecUserGroup ${dom.user.name} ${pac.name} |
ee5e33
|
84 |
|
MH |
85 |
#if( ${dynamicWeb} ) |
|
86 |
PassengerEnabled on |
|
87 |
PassengerUser ${dom.user.name} |
|
88 |
PassengerGroup ${pac.name} |
|
89 |
PassengerAppRoot /home/doms/${dom.name}/app-ssl/ |
|
90 |
#end |
6208e0
|
91 |
|
PH |
92 |
SSLEngine On |
|
93 |
SSLCertificateFile /etc/apache2/pems/default.pem |
|
94 |
SSLCertificateChainFile /etc/apache2/pems/default.chain.pem |
|
95 |
SSLCertificateFile /etc/apache2/pems/${pac.name}.pem |
|
96 |
SSLCertificateChainFile /etc/apache2/pems/${pac.name}.chain.pem |
ee5e33
|
97 |
|
6208e0
|
98 |
DocumentRoot /home/doms/${dom.name}/htdocs-ssl |
PH |
99 |
|
|
100 |
Alias /cgi-bin/ /home/doms/${dom.name}/cgi-ssl/ |
|
101 |
Alias /fastcgi-bin/ /home/doms/${dom.name}/fastcgi-ssl/ |
|
102 |
|
|
103 |
<Directory /> |
|
104 |
SSLRequireSSL On |
|
105 |
Options -ExecCGI ${includes} ${indexes} ${multiviews} +SymLinksIfOwnerMatch |
|
106 |
</Directory> |
|
107 |
|
|
108 |
<Directory /home/doms/${dom.name}/> |
ee5e33
|
109 |
AllowOverride AuthConfig FileInfo Indexes Limit Options=Includes,Indexes,MultiViews,PassengerNodejs,PassengerPython,PassengerRuby,PassengerAppEnv |
6208e0
|
110 |
</Directory> |
PH |
111 |
|
9d22db
|
112 |
#if( ${dynamicWeb} ) |
6208e0
|
113 |
<Location /cgi-bin/> |
PH |
114 |
SetHandler cgi-script |
|
115 |
Options +ExecCGI ${includes} -Indexes -MultiViews +SymLinksIfOwnerMatch |
|
116 |
</Location> |
ee5e33
|
117 |
#else |
MH |
118 |
<Location /cgi-bin/> |
|
119 |
Redirect 501 / |
|
120 |
</Location> |
|
121 |
#end |
6208e0
|
122 |
|
ee5e33
|
123 |
#if( ${dynamicWeb} ) |
6208e0
|
124 |
<Location /fastcgi-bin/> |
PH |
125 |
SetHandler fcgid-script |
|
126 |
Options +ExecCGI ${includes} -Indexes -MultiViews +SymLinksIfOwnerMatch |
|
127 |
</Location> |
|
128 |
#else |
|
129 |
<Location /fastcgi-bin/> |
|
130 |
Redirect 501 / |
|
131 |
</Location> |
|
132 |
#end |
|
133 |
|
|
134 |
RewriteEngine On |
|
135 |
RewriteOptions Inherit |
|
136 |
|
|
137 |
RewriteCond %{REQUEST_URI} !^/cgi-bin/ |
|
138 |
RewriteCond %{REQUEST_URI} !^/fastcgi-bin/ |
747bf3
|
139 |
RewriteCond %{HTTP_HOST} ^(.+)\.${dom.name}\.?(:[0-9]+)?$ [novary] |
PH |
140 |
RewriteCond /home/doms/${dom.name}/subs-ssl/#[[${tolower:%1} ]]# -d |
|
141 |
RewriteRule ^(.*) /home/doms/${dom.name}/subs-ssl/#[[${tolower:%1}$1 ]]# [last] |
6208e0
|
142 |
|
PH |
143 |
#if( !${htdocsfallback} ) |
|
144 |
RewriteCond %{REQUEST_URI} !^/cgi-bin/ |
|
145 |
RewriteCond %{REQUEST_URI} !^/fastcgi-bin/ |
747bf3
|
146 |
RewriteCond %{HTTP_HOST} ^(.+)\.${dom.name}\.?(:443)?$ [novary] |
PH |
147 |
RewriteCond /home/doms/${dom.name}/subs-ssl/#[[${tolower:%1} ]]# !-d |
6208e0
|
148 |
RewriteRule ^(.*) - [redirect=404,last] |
PH |
149 |
#end |
|
150 |
|
9d22db
|
151 |
#if( ${dynamicWeb} ) |
6208e0
|
152 |
AddType application/x-httpd-php .php .php5 .php4 .php3 |
PH |
153 |
Action application/x-httpd-php /fastcgi-bin/phpstub |
|
154 |
#end |
|
155 |
</VirtualHost> |