Ok, now that you mentioned it, silly me... yes I don't see any access_log files connected to this rule. There is only $project.mydomain.com.error_log file. I'm using nginx 0.8.53. So basically - it is not possible? It's not a big deal anyway, I can always keep them in one file and grep them or whatever... I was just wondering that, maybe I am doing something wrong. Greets!by ajgon - Nginx Mailing List - English
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<project>[^.]+).mydomain.com$; server_name ~^(www\.)?(?P<project>[^.]+).mydomain.com$; (entitied version) I'm basically cathing this variable in regexp while parby ajgon - Nginx Mailing List - English
Hello, I am configuring an automagic virtual hosting on my private machine, to serve myself projects which I currently work on. Configuration I'm using is like this: server { listen 80; server_name ~^(www\.)?(?P<project>[^.]+).mydomain.com$; root /home/ajgon/htdocs/$project; access_log /var/log/nginx/$project.mydomain.com.access_log main; error_log /var/log/nginx/$projecby ajgon - Nginx Mailing List - English