commit | author | age
|
47cca9
|
1 |
|
T |
2 |
<Directory {tmpl_var name='web_basedir'}/{tmpl_var name='domain'}> |
0305b2
|
3 |
AllowOverride None |
1da57c
|
4 |
<tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
61bf63
|
5 |
Require all denied |
1da57c
|
6 |
<tmpl_else> |
0305b2
|
7 |
Order Deny,Allow |
M |
8 |
Deny from all |
1da57c
|
9 |
</tmpl_if> |
47cca9
|
10 |
</Directory> |
T |
11 |
|
a7bdf8
|
12 |
<tmpl_loop name="vhosts"> |
T |
13 |
<VirtualHost {tmpl_var name='ip_address'}:{tmpl_var name='port'}> |
47cca9
|
14 |
<tmpl_if name='php' op='==' value='suphp'> |
0305b2
|
15 |
DocumentRoot <tmpl_var name='web_document_root'> |
47cca9
|
16 |
</tmpl_else> |
0305b2
|
17 |
<tmpl_if name='php' op='==' value='cgi'> |
M |
18 |
DocumentRoot <tmpl_var name='web_document_root'> |
|
19 |
</tmpl_else> |
cc6568
|
20 |
<tmpl_if name='php' op='==' value='php-fpm'> |
H |
21 |
DocumentRoot <tmpl_var name='web_document_root'> |
|
22 |
</tmpl_else> |
c59632
|
23 |
<tmpl_if name='php' op='==' value='hhvm'> |
MC |
24 |
DocumentRoot <tmpl_var name='web_document_root'> |
|
25 |
</tmpl_else> |
|
26 |
DocumentRoot <tmpl_var name='web_document_root_www'> |
|
27 |
</tmpl_if> |
cc6568
|
28 |
</tmpl_if> |
0305b2
|
29 |
</tmpl_if> |
47cca9
|
30 |
</tmpl_if> |
T |
31 |
|
0305b2
|
32 |
ServerName <tmpl_var name='domain'> |
47cca9
|
33 |
<tmpl_if name='alias'> |
0305b2
|
34 |
<tmpl_var name='alias'> |
47cca9
|
35 |
</tmpl_if> |
0305b2
|
36 |
ServerAdmin webmaster@<tmpl_var name='domain'> |
47cca9
|
37 |
|
0305b2
|
38 |
ErrorLog /var/log/ispconfig/httpd/<tmpl_var name='domain'>/error.log |
3e0034
|
39 |
|
47cca9
|
40 |
<tmpl_if name='errordocs'> |
0305b2
|
41 |
Alias /error/ "<tmpl_var name='web_document_root_www'>/error/" |
M |
42 |
ErrorDocument 400 /error/400.html |
|
43 |
ErrorDocument 401 /error/401.html |
|
44 |
ErrorDocument 403 /error/403.html |
|
45 |
ErrorDocument 404 /error/404.html |
|
46 |
ErrorDocument 405 /error/405.html |
|
47 |
ErrorDocument 500 /error/500.html |
|
48 |
ErrorDocument 502 /error/502.html |
|
49 |
ErrorDocument 503 /error/503.html |
47cca9
|
50 |
</tmpl_if> |
a7bdf8
|
51 |
|
0305b2
|
52 |
<IfModule mod_ssl.c> |
a7bdf8
|
53 |
<tmpl_if name='ssl_enabled'> |
53124e
|
54 |
SSLEngine on |
TB |
55 |
SSLProtocol All -SSLv2 -SSLv3 |
f89879
|
56 |
SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA |
MC |
57 |
SSLHonorCipherOrder on |
|
58 |
<IfModule mod_headers.c> |
|
59 |
Header always add Strict-Transport-Security "max-age=15768000" |
|
60 |
</IfModule> |
0305b2
|
61 |
SSLCertificateFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='ssl_domain'>.crt |
M |
62 |
SSLCertificateKeyFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='ssl_domain'>.key |
a7bdf8
|
63 |
<tmpl_if name='has_bundle_cert'> |
f78f1e
|
64 |
<tmpl_if name='apache_version' op='<' value='2.4.8' format='version'> |
MC |
65 |
SSLCertificateChainFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='ssl_domain'>.bundle |
|
66 |
</tmpl_if> |
f89879
|
67 |
<tmpl_if name='apache_version' op='>=' value='2.4' format='version'> |
MC |
68 |
SSLUseStapling on |
|
69 |
SSLStaplingResponderTimeout 5 |
|
70 |
SSLStaplingReturnResponderErrors off |
|
71 |
</tmpl_if> |
a7bdf8
|
72 |
</tmpl_if> |
dec0df
|
73 |
</tmpl_if> |
0305b2
|
74 |
</IfModule> |
dec0df
|
75 |
|
0305b2
|
76 |
<Directory {tmpl_var name='web_document_root_www'}> |
596a60
|
77 |
# Clear PHP settings of this website |
MC |
78 |
<FilesMatch ".+\.ph(p[345]?|t|tml)$"> |
|
79 |
SetHandler None |
|
80 |
</FilesMatch> |
5545f1
|
81 |
Options +FollowSymLinks |
0305b2
|
82 |
AllowOverride <tmpl_var name='allow_override'> |
1da57c
|
83 |
<tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
8133de
|
84 |
Require all granted |
1da57c
|
85 |
<tmpl_else> |
0305b2
|
86 |
Order allow,deny |
M |
87 |
Allow from all |
1da57c
|
88 |
</tmpl_if> |
47cca9
|
89 |
<tmpl_if name='ssi' op='==' value='y'> |
0305b2
|
90 |
|
M |
91 |
# ssi enabled |
|
92 |
AddType text/html .shtml |
|
93 |
AddOutputFilter INCLUDES .shtml |
|
94 |
Options +Includes |
47cca9
|
95 |
</tmpl_if> |
T |
96 |
<tmpl_if name='php' op='==' value='no'> |
0305b2
|
97 |
<Files ~ '.php[s3-6]{0,1}$'> |
1da57c
|
98 |
<tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
8133de
|
99 |
Require all denied |
1da57c
|
100 |
<tmpl_else> |
0305b2
|
101 |
Order allow,deny |
M |
102 |
Deny from all |
|
103 |
Allow from none |
1da57c
|
104 |
</tmpl_if> |
0305b2
|
105 |
</Files> |
47cca9
|
106 |
</tmpl_if> |
0305b2
|
107 |
</Directory> |
M |
108 |
<Directory {tmpl_var name='web_document_root'}> |
596a60
|
109 |
# Clear PHP settings of this website |
MC |
110 |
<FilesMatch ".+\.ph(p[345]?|t|tml)$"> |
|
111 |
SetHandler None |
|
112 |
</FilesMatch> |
5545f1
|
113 |
Options +FollowSymLinks |
0305b2
|
114 |
AllowOverride <tmpl_var name='allow_override'> |
1da57c
|
115 |
<tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
8133de
|
116 |
Require all granted |
1da57c
|
117 |
<tmpl_else> |
0305b2
|
118 |
Order allow,deny |
M |
119 |
Allow from all |
1da57c
|
120 |
</tmpl_if> |
47cca9
|
121 |
<tmpl_if name='ssi' op='==' value='y'> |
0305b2
|
122 |
|
M |
123 |
# ssi enabled |
|
124 |
AddType text/html .shtml |
|
125 |
AddOutputFilter INCLUDES .shtml |
|
126 |
Options +Includes |
47cca9
|
127 |
</tmpl_if> |
07d3a1
|
128 |
<tmpl_if name='php' op='==' value='no'> |
0305b2
|
129 |
<Files ~ '.php[s3-6]{0,1}$'> |
1da57c
|
130 |
<tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
8133de
|
131 |
Require all denied |
1da57c
|
132 |
<tmpl_else> |
8133de
|
133 |
Order allow,deny |
MC |
134 |
Deny from all |
|
135 |
Allow from none |
1da57c
|
136 |
</tmpl_if> |
0305b2
|
137 |
</Files> |
07d3a1
|
138 |
</tmpl_if> |
0305b2
|
139 |
</Directory> |
07d3a1
|
140 |
|
22ef48
|
141 |
<tmpl_if name='ruby' op='==' value='y'> |
0305b2
|
142 |
<IfModule mod_ruby.c> |
M |
143 |
<Directory {tmpl_var name='web_document_root_www'}> |
|
144 |
Options +ExecCGI |
|
145 |
</Directory> |
|
146 |
RubyRequire apache/ruby-run |
|
147 |
#RubySafeLevel 0 |
|
148 |
AddType text/html .rb |
|
149 |
AddType text/html .rbx |
|
150 |
<Files *.rb> |
|
151 |
SetHandler ruby-object |
|
152 |
RubyHandler Apache::RubyRun.instance |
|
153 |
</Files> |
|
154 |
<Files *.rbx> |
|
155 |
SetHandler ruby-object |
|
156 |
RubyHandler Apache::RubyRun.instance |
|
157 |
</Files> |
|
158 |
</IfModule> |
22ef48
|
159 |
</tmpl_if> |
47cca9
|
160 |
|
ab7597
|
161 |
<tmpl_if name='perl' op='==' value='y'> |
M |
162 |
<IfModule mod_perl.c> |
|
163 |
PerlModule ModPerl::Registry |
|
164 |
PerlModule Apache2::Reload |
|
165 |
<Directory {tmpl_var name='web_document_root_www'}> |
|
166 |
PerlResponseHandler ModPerl::Registry |
|
167 |
PerlOptions +ParseHeaders |
|
168 |
Options +ExecCGI |
|
169 |
</Directory> |
72d6a8
|
170 |
<Directory {tmpl_var name='web_document_root'}> |
TB |
171 |
PerlResponseHandler ModPerl::Registry |
|
172 |
PerlOptions +ParseHeaders |
|
173 |
Options +ExecCGI |
|
174 |
</Directory> |
6fb93d
|
175 |
<Files *.pl> |
M |
176 |
SetHandler perl-script |
|
177 |
</Files> |
ab7597
|
178 |
</IfModule> |
M |
179 |
</tmpl_if> |
|
180 |
|
298ef5
|
181 |
<tmpl_if name='python' op='==' value='y'> |
0305b2
|
182 |
<IfModule mod_python.c> |
M |
183 |
<Directory {tmpl_var name='web_document_root_www'}> |
3bc1e1
|
184 |
<FilesMatch "\.py$"> |
MC |
185 |
SetHandler mod_python |
|
186 |
</FilesMatch> |
0305b2
|
187 |
PythonHandler mod_python.publisher |
M |
188 |
PythonDebug On |
|
189 |
</Directory> |
|
190 |
</IfModule> |
298ef5
|
191 |
</tmpl_if> |
F |
192 |
|
47cca9
|
193 |
<tmpl_if name='cgi' op='==' value='y'> |
0305b2
|
194 |
# cgi enabled |
47cca9
|
195 |
<Directory {tmpl_var name='document_root'}/cgi-bin> |
1da57c
|
196 |
<tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
8133de
|
197 |
Require all granted |
1da57c
|
198 |
<tmpl_else> |
0305b2
|
199 |
Order allow,deny |
M |
200 |
Allow from all |
1da57c
|
201 |
</tmpl_if> |
0305b2
|
202 |
</Directory> |
M |
203 |
ScriptAlias /cgi-bin/ <tmpl_var name='document_root'>/cgi-bin/ |
3bc1e1
|
204 |
<FilesMatch "\.(cgi|pl)$"> |
MC |
205 |
SetHandler cgi-script |
|
206 |
</FilesMatch> |
47cca9
|
207 |
</tmpl_if> |
T |
208 |
<tmpl_if name='suexec' op='==' value='y'> |
0305b2
|
209 |
# suexec enabled |
M |
210 |
<IfModule mod_suexec.c> |
|
211 |
SuexecUserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'> |
|
212 |
</IfModule> |
47cca9
|
213 |
</tmpl_if> |
T |
214 |
<tmpl_if name='php' op='==' value='mod'> |
0305b2
|
215 |
# mod_php enabled |
M |
216 |
AddType application/x-httpd-php .php .php3 .php4 .php5 |
61bd1f
|
217 |
SetEnv TMP <tmpl_var name='document_root'>/tmp |
FT |
218 |
SetEnv TMPDIR <tmpl_var name='document_root'>/tmp |
|
219 |
SetEnv TEMP <tmpl_var name='document_root'>/tmp |
0305b2
|
220 |
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@<tmpl_var name='domain'>" |
M |
221 |
php_admin_value upload_tmp_dir <tmpl_var name='document_root'>/tmp |
|
222 |
php_admin_value session.save_path <tmpl_var name='document_root'>/tmp |
10f838
|
223 |
# PHPIniDir <tmpl_var name='custom_php_ini_dir'> |
215d18
|
224 |
<tmpl_if name='security_level' op='==' value='20'> |
0305b2
|
225 |
php_admin_value open_basedir <tmpl_var name='php_open_basedir'> |
215d18
|
226 |
</tmpl_if> |
47cca9
|
227 |
</tmpl_if> |
T |
228 |
<tmpl_if name='php' op='==' value='suphp'> |
0305b2
|
229 |
# suphp enabled |
M |
230 |
<Directory {tmpl_var name='web_document_root'}> |
f8d8a4
|
231 |
<IfModule mod_suphp.c> |
3bc1e1
|
232 |
suPHP_Engine on |
MC |
233 |
# suPHP_UserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'> |
7fddfe
|
234 |
<tmpl_if name='has_custom_php_ini'> |
T |
235 |
suPHP_ConfigPath <tmpl_var name='custom_php_ini_dir'> |
|
236 |
</tmpl_if> |
3bc1e1
|
237 |
<FilesMatch "\.php[345]?$"> |
MC |
238 |
SetHandler x-httpd-suphp |
|
239 |
</FilesMatch> |
|
240 |
suPHP_AddHandler x-httpd-suphp |
f8d8a4
|
241 |
</IfModule> |
0305b2
|
242 |
</Directory> |
47cca9
|
243 |
</tmpl_if> |
T |
244 |
<tmpl_if name='php' op='==' value='cgi'> |
0305b2
|
245 |
# php as cgi enabled |
M |
246 |
ScriptAlias /php5-cgi <tmpl_var name='cgi_starter_path'><tmpl_var name='cgi_starter_script'> |
|
247 |
Action php5-cgi /php5-cgi |
51910d
|
248 |
<Directory {tmpl_var name='web_document_root_www'}> |
TB |
249 |
<FilesMatch "\.php[345]?$"> |
|
250 |
SetHandler php5-cgi |
|
251 |
</FilesMatch> |
|
252 |
</Directory> |
|
253 |
<Directory {tmpl_var name='web_document_root'}> |
|
254 |
<FilesMatch "\.php[345]?$"> |
|
255 |
SetHandler php5-cgi |
|
256 |
</FilesMatch> |
|
257 |
</Directory> |
0305b2
|
258 |
<Directory {tmpl_var name='cgi_starter_path'}> |
1da57c
|
259 |
<tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
8133de
|
260 |
Require all granted |
1da57c
|
261 |
<tmpl_else> |
8133de
|
262 |
Order allow,deny |
MC |
263 |
Allow from all |
1da57c
|
264 |
</tmpl_if> |
0305b2
|
265 |
</Directory> |
47cca9
|
266 |
</tmpl_if> |
T |
267 |
<tmpl_if name='php' op='==' value='fast-cgi'> |
0305b2
|
268 |
# php as fast-cgi enabled |
8fe84f
|
269 |
# For config options see: http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html |
0305b2
|
270 |
<IfModule mod_fcgid.c> |
92e0ce
|
271 |
<tmpl_if name='fastcgi_config_syntax' op='==' value='2'> |
0305b2
|
272 |
FcgidIdleTimeout 300 |
M |
273 |
FcgidProcessLifeTime 3600 |
|
274 |
# FcgidMaxProcesses 1000 |
bfcdef
|
275 |
FcgidMaxRequestsPerProcess <tmpl_var name='fastcgi_max_requests'> |
0305b2
|
276 |
FcgidMinProcessesPerClass 0 |
310f4c
|
277 |
FcgidMaxProcessesPerClass 10 |
0305b2
|
278 |
FcgidConnectTimeout 3 |
2ed8f0
|
279 |
FcgidIOTimeout 600 |
MC |
280 |
FcgidBusyTimeout 3600 |
bfcdef
|
281 |
FcgidMaxRequestLen 1073741824 |
92e0ce
|
282 |
<tmpl_else> |
0305b2
|
283 |
IdleTimeout 300 |
M |
284 |
ProcessLifeTime 3600 |
|
285 |
# MaxProcessCount 1000 |
|
286 |
DefaultMinClassProcessCount 0 |
|
287 |
DefaultMaxClassProcessCount 100 |
|
288 |
IPCConnectTimeout 3 |
2ed8f0
|
289 |
IPCCommTimeout 600 |
MC |
290 |
BusyTimeout 3600 |
92e0ce
|
291 |
</tmpl_if> |
0305b2
|
292 |
</IfModule> |
M |
293 |
<Directory {tmpl_var name='web_document_root_www'}> |
3bc1e1
|
294 |
<FilesMatch "\.php[345]?$"> |
MC |
295 |
SetHandler fcgid-script |
|
296 |
</FilesMatch> |
0305b2
|
297 |
FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php |
c0a1a4
|
298 |
FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php3 |
TB |
299 |
FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php4 |
|
300 |
FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php5 |
0305b2
|
301 |
Options +ExecCGI |
M |
302 |
AllowOverride <tmpl_var name='allow_override'> |
1da57c
|
303 |
<tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
8133de
|
304 |
Require all granted |
1da57c
|
305 |
<tmpl_else> |
0305b2
|
306 |
Order allow,deny |
M |
307 |
Allow from all |
1da57c
|
308 |
</tmpl_if> |
0305b2
|
309 |
</Directory> |
M |
310 |
<Directory {tmpl_var name='web_document_root'}> |
3bc1e1
|
311 |
<FilesMatch "\.php[345]?$"> |
MC |
312 |
SetHandler fcgid-script |
|
313 |
</FilesMatch> |
0305b2
|
314 |
FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php |
c0a1a4
|
315 |
FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php3 |
TB |
316 |
FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php4 |
|
317 |
FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php5 |
0305b2
|
318 |
Options +ExecCGI |
M |
319 |
AllowOverride <tmpl_var name='allow_override'> |
1da57c
|
320 |
<tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
8133de
|
321 |
Require all granted |
1da57c
|
322 |
<tmpl_else> |
0305b2
|
323 |
Order allow,deny |
M |
324 |
Allow from all |
1da57c
|
325 |
</tmpl_if> |
0305b2
|
326 |
</Directory> |
47cca9
|
327 |
</tmpl_if> |
274362
|
328 |
<tmpl_if name='php' op='==' value='php-fpm'> |
0305b2
|
329 |
<IfModule mod_fastcgi.c> |
10b4c8
|
330 |
<Directory {tmpl_var name='document_root'}/cgi-bin> |
1da57c
|
331 |
<tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
8133de
|
332 |
Require all granted |
1da57c
|
333 |
<tmpl_else> |
8133de
|
334 |
Order allow,deny |
MC |
335 |
Allow from all |
1da57c
|
336 |
</tmpl_if> |
52846b
|
337 |
</Directory> |
596a60
|
338 |
<Directory {tmpl_var name='web_document_root_www'}> |
MC |
339 |
<FilesMatch "\.php[345]?$"> |
|
340 |
SetHandler php5-fcgi |
|
341 |
</FilesMatch> |
|
342 |
</Directory> |
|
343 |
<Directory {tmpl_var name='web_document_root'}> |
|
344 |
<FilesMatch "\.php[345]?$"> |
|
345 |
SetHandler php5-fcgi |
|
346 |
</FilesMatch> |
|
347 |
</Directory> |
6ffc75
|
348 |
Action php5-fcgi /php5-fcgi virtual |
bfcdef
|
349 |
Alias /php5-fcgi {tmpl_var name='document_root'}/cgi-bin/php5-fcgi-{tmpl_var name='ip_address'}-{tmpl_var name='port'}-{tmpl_var name='domain'} |
274362
|
350 |
<tmpl_if name='use_tcp'> |
cc6568
|
351 |
FastCgiExternalServer {tmpl_var name='document_root'}/cgi-bin/php5-fcgi-{tmpl_var name='ip_address'}-{tmpl_var name='port'}-{tmpl_var name='domain'} -idle-timeout 300 -host 127.0.0.1:<tmpl_var name='fpm_port'> -pass-header Authorization |
44fe3b
|
352 |
<IfModule mod_proxy_fcgi.c> |
MK |
353 |
ProxyPassMatch ^/(.*\.php[345]?(/.*)?)$ fcgi://127.0.0.1:<tmpl_var name='fpm_port'><tmpl_var name='web_document_root'>/$1 |
|
354 |
</IfModule> |
274362
|
355 |
</tmpl_if> |
F |
356 |
<tmpl_if name='use_socket'> |
cc6568
|
357 |
FastCgiExternalServer {tmpl_var name='document_root'}/cgi-bin/php5-fcgi-{tmpl_var name='ip_address'}-{tmpl_var name='port'}-{tmpl_var name='domain'} -idle-timeout 300 -socket <tmpl_var name='fpm_socket'> -pass-header Authorization |
274362
|
358 |
</tmpl_if> |
797215
|
359 |
</IfModule> |
274362
|
360 |
</tmpl_if> |
e64fbb
|
361 |
|
c59632
|
362 |
<tmpl_if name='php' op='==' value='hhvm'> |
MC |
363 |
<IfModule mod_fastcgi.c> |
|
364 |
<Directory {tmpl_var name='document_root'}/cgi-bin> |
|
365 |
<tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
|
366 |
Require all granted |
|
367 |
<tmpl_else> |
|
368 |
Order allow,deny |
|
369 |
Allow from all |
|
370 |
</tmpl_if> |
|
371 |
</Directory> |
596a60
|
372 |
<Directory {tmpl_var name='web_document_root_www'}> |
MC |
373 |
<FilesMatch "\.php[345]?$"> |
|
374 |
SetHandler hhvm-fcgi |
|
375 |
</FilesMatch> |
|
376 |
<FilesMatch "\.hh$"> |
|
377 |
SetHandler hhvm-fcgi |
|
378 |
</FilesMatch> |
|
379 |
</Directory> |
|
380 |
<Directory {tmpl_var name='web_document_root'}> |
|
381 |
<FilesMatch "\.php[345]?$"> |
|
382 |
SetHandler hhvm-fcgi |
|
383 |
</FilesMatch> |
|
384 |
<FilesMatch "\.hh$"> |
|
385 |
SetHandler hhvm-fcgi |
|
386 |
</FilesMatch> |
|
387 |
</Directory> |
8edabf
|
388 |
Action hhvm-fcgi /hhvm-fcgi virtual |
c04e79
|
389 |
Alias /hhvm-fcgi {tmpl_var name='document_root'}/cgi-bin/hhvm-fcgi-{tmpl_var name='ip_address'}-{tmpl_var name='port'}-{tmpl_var name='domain'} |
MC |
390 |
FastCgiExternalServer {tmpl_var name='document_root'}/cgi-bin/hhvm-fcgi-{tmpl_var name='ip_address'}-{tmpl_var name='port'}-{tmpl_var name='domain'} -idle-timeout 300 -socket /var/run/hhvm/hhvm.<tmpl_var name='system_user'>.sock -pass-header Authorization |
c59632
|
391 |
</IfModule> |
MC |
392 |
</tmpl_if> |
|
393 |
|
8ab3cd
|
394 |
<tmpl_if name="rewrite_enabled"> |
0305b2
|
395 |
RewriteEngine on |
8ab3cd
|
396 |
<tmpl_if name='seo_redirect_enabled'> |
bfcdef
|
397 |
RewriteCond %{HTTP_HOST} <tmpl_var name='seo_redirect_operator'>^<tmpl_var name='seo_redirect_origin_domain'>$ [NC] |
cc6568
|
398 |
RewriteRule ^(.*)$ http<tmpl_if name='ssl_enabled'>s</tmpl_if>://<tmpl_var name='seo_redirect_target_domain'>$1 [R=301,L] |
e64fbb
|
399 |
</tmpl_if> |
bfcdef
|
400 |
<tmpl_loop name="alias_seo_redirects"> |
T |
401 |
RewriteCond %{HTTP_HOST} <tmpl_var name='alias_seo_redirect_operator'>^<tmpl_var name='alias_seo_redirect_origin_domain'>$ [NC] |
cc6568
|
402 |
RewriteRule ^(.*)$ http<tmpl_if name='ssl_enabled'>s</tmpl_if>://<tmpl_var name='alias_seo_redirect_target_domain'>$1 [R=301,L] |
bfcdef
|
403 |
</tmpl_loop> |
47cca9
|
404 |
<tmpl_loop name="redirects"> |
0305b2
|
405 |
RewriteCond %{HTTP_HOST} <tmpl_var name='rewrite_domain'>$ [NC] |
046d62
|
406 |
<tmpl_if name="rewrite_is_url" op="==" value="n"> |
M |
407 |
RewriteCond %{REQUEST_URI} !^/webdav/ |
6f4f6b
|
408 |
RewriteCond %{REQUEST_URI} !^/php5-fcgi/ |
046d62
|
409 |
RewriteCond %{REQUEST_URI} !^<tmpl_var name='rewrite_target'> |
M |
410 |
</tmpl_if> |
6f833c
|
411 |
|
e6fd35
|
412 |
RewriteRule ^/(.*)$ <tmpl_var name='rewrite_target'><tmpl_if name="rewrite_add_path" op="==" value="y">$1</tmpl_if> <tmpl_var name='rewrite_type'> |
6f833c
|
413 |
|
47cca9
|
414 |
</tmpl_loop> |
f0dfa9
|
415 |
<tmpl_if name='ssl_enabled'> |
MC |
416 |
<tmpl_if name='rewrite_to_https' op='==' value='y'> |
|
417 |
RewriteCond %{HTTPS} off |
|
418 |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |
|
419 |
</tmpl_if> |
|
420 |
</tmpl_if> |
47cca9
|
421 |
</tmpl_if> |
T |
422 |
|
0305b2
|
423 |
# add support for apache mpm_itk |
M |
424 |
<IfModule mpm_itk_module> |
|
425 |
AssignUserId <tmpl_var name='system_user'> <tmpl_var name='system_group'> |
|
426 |
</IfModule> |
c4570e
|
427 |
|
0305b2
|
428 |
<IfModule mod_dav_fs.c> |
M |
429 |
# Do not execute PHP files in webdav directory |
|
430 |
<Directory {tmpl_var name='document_root'}/webdav> |
7762fb
|
431 |
<ifModule mod_security2.c> |
M |
432 |
SecRuleRemoveById 960015 |
|
433 |
SecRuleRemoveById 960032 |
|
434 |
</ifModule> |
|
435 |
<FilesMatch "\.ph(p3?|tml)$"> |
0305b2
|
436 |
SetHandler None |
M |
437 |
</FilesMatch> |
|
438 |
</Directory> |
|
439 |
DavLockDB {tmpl_var name='document_root'}/tmp/DavLock |
|
440 |
# DO NOT REMOVE THE COMMENTS! |
|
441 |
# IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE! |
|
442 |
# WEBDAV BEGIN |
|
443 |
# WEBDAV END |
|
444 |
</IfModule> |
ac933e
|
445 |
|
47cca9
|
446 |
<tmpl_var name='apache_directives'> |
T |
447 |
</VirtualHost> |
61bf63
|
448 |
</tmpl_loop> |