Get current location where the module's working

Hung Nguyen hungnv at opensource.com.vn
Wed Aug 19 09:50:19 UTC 2015


Hello,

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 {
	my_module;
	enable on;
}


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

Thanks,





More information about the nginx-devel mailing list