diff --git a/nginx.conf b/nginx.conf index 07295e4da..22f7acd56 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/(.*)\.(txt|md|html|php|yaml|json|twig|sh|bat)$ /error redirect; - } + location /system { + rewrite ^/system/(.*)\.(txt|md|html|php|yaml|json|twig|sh|bat)$ /error redirect; + } - location /vendor { - rewrite ^/vendor/(.*)\.(txt|md|html|php|yaml|json|twig|sh|bat)$ /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 @@ -60,7 +60,6 @@ http { include fastcgi_params; } - } }