2011年2月26日星期六

Re: RE: Passing variables to access_log, error_log names

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


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

没有评论:

发表评论