Passing variables to access_log, error_log names

ajgon nginx-forum at nginx.us
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[^.]+).mydomain.com$;
server_name ~^(www\.)?(?P<project>[^.]+).mydomain.com$; (entitied
version)

I'm basically cathing this variable in regexp while parsing
server_name.

Greets

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,178665,178672#msg-178672




More information about the nginx mailing list