Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
c8c13a72
Commit
c8c13a72
authored
Sep 04, 2012
by
Falko Timme
Browse files
- Added random PHP dummy file to "location ~ \.php$ {}".
parent
7869813e
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/conf/nginx_vhost.conf.master
View file @
c8c13a72
...
...
@@ -106,7 +106,7 @@ server {
}
location ~ \.php$ {
try_files
@php
@php;
try_files
<tmpl_var name='rnd_php_dummy_file'>
@php;
}
<tmpl_if name='php' op='==' value='php-fpm'>
...
...
server/plugins-available/nginx_plugin.inc.php
View file @
c8c13a72
...
...
@@ -819,6 +819,7 @@ class nginx_plugin {
$tpl
->
setVar
(
'use_socket'
,
$use_socket
);
$fpm_socket
=
$socket_dir
.
$pool_name
.
'.sock'
;
$tpl
->
setVar
(
'fpm_socket'
,
$fpm_socket
);
$tpl
->
setVar
(
'rnd_php_dummy_file'
,
'/'
.
md5
(
uniqid
(
microtime
(),
1
))
.
'.htm'
);
$vhost_data
[
'fpm_port'
]
=
$web_config
[
'php_fpm_start_port'
]
+
$data
[
'new'
][
'domain_id'
]
-
1
;
// backwards compatibility; since ISPConfig 3.0.5, the PHP mode for nginx is called 'php-fpm' instead of 'fast-cgi'. The following line makes sure that old web sites that have 'fast-cgi' in the database still get PHP-FPM support.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment