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;
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
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
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
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
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
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
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