From 50cdf01fae17f7cc766067d065ca1156633554c2 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Tue, 18 Nov 2014 16:28:47 -0700 Subject: [PATCH] nginx config update - thanks paulr --- nginx.conf | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/nginx.conf b/nginx.conf index e3e94f4c2..07295e4da 100644 --- a/nginx.conf +++ b/nginx.conf @@ -27,26 +27,26 @@ http { } location /user { - rewrite ^/user/accounts/(.*)$ /error redirect; - rewrite ^/user/config/(.*)$ /error redirect; - rewrite ^/user/(.*)\.(txt|md|html|php|yaml|json|twig|sh|bat)$ /error redirect; - } + rewrite ^/user/accounts/(.*)$ /error redirect; + rewrite ^/user/config/(.*)$ /error redirect; + rewrite ^/user/(.*)\.(txt|md|html|php|yaml|json|twig|sh|bat)$ /error redirect; + } - location /cache { - rewrite ^/cache/(.*) /error redirect; - } + location /cache { + rewrite ^/cache/(.*) /error redirect; + } - location /bin { - rewrite ^/bin/(.*)$ /error redirect; - } + location /bin { + rewrite ^/bin/(.*)$ /error redirect; + } - location /system { - rewrite ^/system/(.*)$ /error redirect; - } + location /system { + rewrite ^/system/(.*)\.(txt|md|html|php|yaml|json|twig|sh|bat)$ /error redirect; + } - location /vendor { - rewrite ^/vendor/(.*)$ /error redirect; - } + location /vendor { + rewrite ^/vendor/(.*)\.(txt|md|html|php|yaml|json|twig|sh|bat)$ /error redirect; + } # Remember to change 127.0.0.1:9000 to the Ip/port # you configured php-cgi.exe to run from