Passing variables to access_log, error_log names

ajgon nginx-forum at
Sun Feb 27 01:08:53 MSK 2011

Hmm... strange - in my post, I see this line correctly, but in your
reply project part is broken - maybe something with HTML escaping...
anyway, the server_name line should look like this:
server_name ~^(www\.)?(?P[^.]+)$;
server_name ~^(www\.)?(?P<project>[^.]+)$; (entitied

I'm basically cathing this variable in regexp while parsing


Posted at Nginx Forum:,178665,178672#msg-178672

More information about the nginx mailing list