Question

I want Nginx to log requests that start with /path to a certain log file. like this:

Sorry if this is vague, but I'm new to the nginx config biz. Feel free to ask questions about what I'm doing, I'll answer them the best I can.

Was it helpful?

Solution

location /foobar {
 access_log /var/log/foobar.log;
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top