Skip to content

Commit efab477

Browse files
author
Till Brehm
committed
Merge branch 'master' into 'master'
nginx cgi bugfix See merge request ispconfig/ispconfig3!793
2 parents d204dbb + cc32aad commit efab477

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

server/conf/nginx_vhost.conf.master

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@ server {
243243

244244
<tmpl_if name='cgi' op='==' value='y'>
245245
location /cgi-bin/ {
246+
try_files <tmpl_var name='rnd_php_dummy_file'> @cgi;
247+
}
248+
249+
location @cgi {
246250
try_files $uri =404;
247251
include /etc/nginx/fastcgi_params;
248252
root <tmpl_var name='document_root'>;
@@ -318,6 +322,12 @@ server {
318322
location ~ \.php$ {
319323
try_files <tmpl_var name='rnd_php_dummy_file'> @php;
320324
}
325+
326+
<tmpl_if name='cgi' op='==' value='y'>
327+
location ~ \.cgi$ {
328+
try_files <tmpl_var name='rnd_php_dummy_file'> @cgi;
329+
}
330+
</tmpl_if>
321331
}
322332
</tmpl_loop>
323333
</tmpl_if>

0 commit comments

Comments
 (0)