Get current location where the module's working

Hung Nguyen hungnv at
Wed Aug 19 09:50:19 UTC 2015


This seems to be a strange question, but I am writing a small module that need to get current location where it’s working, example:

location /special {
	enable on;

Inside my_module, I want to be able to get location —> will return “/special”. Can we do that?


More information about the nginx-devel mailing list