location and file extension regex

Francis Daly francis at daoine.org
Sat Dec 3 14:54:48 UTC 2016


On Sat, Dec 03, 2016 at 02:27:50PM +0000, Musta Fa wrote:

Hi there,

> while i request files
> http://domain.com/config.xml
> or
> http://domain.com/include/config.xml
> both files downloaded, which is not good,

When I do it:

$ curl http://127.0.0.1:8888/config.xml
Did match: /config.xml
$ curl http://127.0.0.1:8888/include/config.xml
Did not match: /include/config.xml

The first matches (and so is blocked), and the second does not match
(and so it allowed). I think that that is what you want?

Either you are not using the configuration you think you are using;
or you have other configuration that you are not showing.

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list