Уже, кажется, все идеи перепробовал, ничего не помогает. Попробую максимально точно описать проблему: На вход фронтенда приходит урл с encoded символами, среди которых есть %20. На proxy_pass этот %20 обращается обратно в пробел иby bodomic - Nginx Mailing List - Russian
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; if ($host ~* ^([^.]+)\.([^.]+)\.example\.com$) { set $project $1;by bodomic - Nginx Mailing List - English
Hi, you may find this overkill configuration helpful: http://publications.jbfavre.org/web/nginx-vhosts-automatiques-avec-SSL-et-authentification.enby bodomic - Nginx Mailing List - English
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 location - I didn't move a second IF there, and again, did not pay enough attention to that. So, theby bodomic - Nginx Mailing List - English
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.by bodomic - Nginx Mailing List - English
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 my 'issue' is gone. As for the second case - yes, it looks like the whole set of http://wiki.ngby bodomic - Nginx Mailing List - English
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 the only reason I use it in my config. If I set location to "~ .*", I'll get header sby bodomic - Nginx Mailing List - English
Right, I have found that too, sorry for disturbance, thanks!by bodomic - Nginx Mailing List - English
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?by bodomic - Nginx Mailing List - English
Спасибо! Обновим. Я пока прописал ssi_types без javascript там, где нужно, так что получилось и на текущих версиях.by bodomic - Nginx Mailing List - Russian
Точно!! Думаю, вопрос закрыт, а мне надо подумать о версиях 1.5.*, хотя рановато, конечно, для продакшна. :( syntax: ssi_last_modified on | off; default: ssi_last_modified off; context: http, server, location This directive appeared in version 1.5.1. Allows preserving the “Last-Modified” header field from thby bodomic - Nginx Mailing List - Russian
Проглядел конфиг ещё раз, может быть, это всё из-за ssi? Впрочем, вот он. # nginx_new -V nginx version: nginx/1.2.9 built by gcc 4.4.5 (Debian 4.4.5-8) TLS SNI support enabled configure arguments: --prefix=/ --sbin-path=/usr/sbin/nginx_new --conf-path=/etc/nginx_new/nginx_new.conf --pid-path=/var/run/nginx_new.pid --lock-path=/var/lock/ngby bodomic - Nginx Mailing List - Russian
Всем привет, Nginx-1.2.9 и 1.4.4 не выставляет Last-Modified заголовок, причём только для js-файлов. Из-за этого клиент всегда получает статус 200 и всегда качает скрипты заново. Стили и картинки, выданные из того же локейшна того же сеby bodomic - Nginx Mailing List - Russian
Приветствую, Столкнулся со странным и, вроде бы, не описанным поведением в proxy_pass. Мне нужно пропустить через image_filter картинки из mogile, сам этот функционал прекрасно работает. Но когда мне нужно ввести вариации - а именноby bodomic - Nginx Mailing List - Russian
нет, try_files не использовался (нет достаточного опыта в таких ситуациях). Можно, наверное, сделать так: root /opt/projectroot; try_files /empty.html; ? Я пока сделал error_page 404 =200 /empty.html; return 404; в принципе, делает что надо.by bodomic - Nginx Mailing List - Russian
ох, русский форум же :) переведу, если надо.by bodomic - Nginx Mailing List - Russian
Hi there, We've found an undefined behavior in certain condition, tend to consider this as a bug. 'If alias is used inside a location defined with a regular expression then such regular expression should contain captures and alias should refer to these captures (0.7.40)'. If, contrary, we're mistakenly using a regexp with selection but alias does not contain $1 variable, we're getting Not Founby bodomic - Nginx Mailing List - Russian