February 20, 2017 07:52AM
Found the answer to my question here http://nginx.org/en/docs/http/ngx_http_core_module.html#location

"If a location is defined by a prefix string that ends with the slash character, and requests are processed by one of proxy_pass, fastcgi_pass, uwsgi_pass, scgi_pass, or memcached_pass, then the special processing is performed. In response to a request with URI equal to this string, but without the trailing slash, a permanent redirect with the code 301 will be returned to the requested URI with the slash appended. If this is not desired, an exact match of the URI and location could be defined like this"
Subject Author Posted

Cache only static files in sub/subfolder but not sub

JoakimR February 19, 2017 02:53PM

Re: Cache only static files in sub/subfolder but not sub

JoakimR February 20, 2017 07:52AM

Re: Cache only static files in sub/subfolder but not sub

Francis Daly February 20, 2017 02:08PM

Re: Cache only static files in sub/subfolder but not sub

JoakimR February 22, 2017 11:01AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 238
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready