Re: 'auto'rewrite link to a folder

2014-08-15 Thread bodomic
I think your current config is too complicated now so that your regular expressions do not do what you think they should. Try a separate server setup in this manner: server { listen 80 default; server_name .example.com; set $project www; set $user www-data;

Re: 'auto'rewrite link to a folder

2014-08-14 Thread bodomic
Hi, you may find this overkill configuration helpful: http://publications.jbfavre.org/web/nginx-vhosts-automatiques-avec-SSL-et-authentification.en Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252553,252577#msg-252577 ___ nginx mailing list

Re: add_header is not working in certain locations

2014-08-14 Thread bodomic
Actually, the second problem is described in this document too, I think I should re-read it every time I want to use IF. In my example (before posting it here) I've dropped the second IF in the same location without much thought. That's why it worked for you. That's why it worked in a separate loca

Re: add_header is not working in certain locations

2014-08-14 Thread bodomic
Thanks for your reply, I've actually found the second traitor (i.e. why second example won't work), will reply to Francis's post once more. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252523,252574#msg-252574 ___ nginx mailing list nginx@n

Re: add_header is not working in certain locations

2014-08-14 Thread bodomic
Hi Francis, Thanks for your thoughtful entry. It seems that it is a cloudy area of buggy 'if' behaviors :) I've created empty host config with just 'location /' and 'if ... add_header' and proxy_pass - and it works fine. I'll have to retest this situation on my real server though to find out if m

add_header is not working in certain locations

2014-08-12 Thread bodomic
Hi all, I've got strange behavior that I don't understand in two different configs. I'll post examples below, in both of them I use add_header two times and one of them is not working while second does. Example 1: Request is: http://hostname/?region=XX #This location adds header, so it's frankly

Re: monitoring cache statistics

2014-01-12 Thread bodomic
Right, I have found that too, sorry for disturbance, thanks! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,2520,246303#msg-246303 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: monitoring cache statistics

2014-01-10 Thread bodomic
Hi people! Just a small note - this patch does not work with nginx-1.4.4 :) I think it's ok after 4.5 years, maybe there is a working version around? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,2520,246221#msg-246221 ___ nginx mailing list