We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d204dbb + cc32aad commit efab477Copy full SHA for efab477
server/conf/nginx_vhost.conf.master
@@ -243,6 +243,10 @@ server {
243
244
<tmpl_if name='cgi' op='==' value='y'>
245
location /cgi-bin/ {
246
+ try_files <tmpl_var name='rnd_php_dummy_file'> @cgi;
247
+ }
248
+
249
+ location @cgi {
250
try_files $uri =404;
251
include /etc/nginx/fastcgi_params;
252
root <tmpl_var name='document_root'>;
@@ -318,6 +322,12 @@ server {
318
322
location ~ \.php$ {
319
323
try_files <tmpl_var name='rnd_php_dummy_file'> @php;
320
324
}
325
326
+<tmpl_if name='cgi' op='==' value='y'>
327
+ location ~ \.cgi$ {
328
329
330
+</tmpl_if>
321
331
332
</tmpl_loop>
333
</tmpl_if>
0 commit comments