Yes! That was it. Thank you. Strange that nginx -t didn't say anything wrong with config :(by reaper - Nginx Mailing List - English
Hello. I'm obviously missing something but I'm not quite sure what. Here's one of my vhosts. server { listen 80; server_name test.local; access_log /var/log/nginx/access.log; root /data/www/htdocs/web; location / { index index.php; } location /testlocation { index index.html root /data/www/htdocs/test; } } When I try to get index.by reaper - Nginx Mailing List - English
It was already set but apparently wasn't being used. location /static/ { try_files $uri @apache-cache; proxy_cache_valid 5m; } location @apache-cache { ... proxy_ignore_headers Set-Cookie Expires Cache-Control; proxy_hide_header Set-Cookie; internal; } Moved this directive to second location and now it's all fine. Thanks!by reaper - Nginx Mailing List - English
nginx is not caching anything. Every request that's supposed to be cached has "http cacheable: 0" in debug log. Test request is a static page with headers like those < HTTP/1.1 200 OK < Date: Tue, 17 May 2016 12:23:36 GMT < Server: Apache/2.2.15 (CentOS) < X-Powered-By: PHP/5.5.32 < Content-Length: 5 < Connection: close < Content-Type: text/html; charset=by reaper - Nginx Mailing List - English
пытаюсь скопировать из примера server_name ~^www\d\.example\.net$; на curl -H 'Host: www0.example.net' http://127.0.0.1/ не реагирует. если вписывать каждый из 0, 1...9 отдельно, все работает как должно. ошибок при перезагрузке нет, в логе только вот такое 2by reaper - Nginx Mailing List - Russian
Спасибо! Так получилось :)by reaper - Nginx Mailing List - Russian
Пытаюсь записывать в лог причину отдачи 301/302 страниц юзерам, добавил, чтобы код отдавал заголовок с причиной редиректа. Показывать его юзеру не оч. хочется, поэтому вырезаю с помощью more_clear_headers или fastcgi_hide_header, увы, в этомby reaper - Nginx Mailing List - Russian
давно не повторялось, сейчас вот опять началось :) на клиенте вижу ответ HTTP/1.1 504 Gateway Time-out хотя в error_page прописано 503 2012/04/14 12:51:50 11906#0: *3332442 event timer del: 6: 2968108478 2012/04/14 12:51:50 11906#0: *3332442 generic phase: 0 2012/04/14 12:51:50 11906#0: *3332442 rewrite phase: 1by reaper - Nginx Mailing List - Russian
Валентин Бартенев Wrote: ------------------------------------------------------- > http://www.nginx.org/ru/docs/http/ngx_http_proxy_module.html#proxy_intercept_errors Каким образом здесь может помочь этот параметр? 504 генерирует фронт, бэк просто не отвечает.by reaper - Nginx Mailing List - Russian
В конфиге прописано, чтобы все ошибки 504 выводились как 503: error_page 504 =503 /; Так же в конфиге прописаны 2 бэкенда: upstream back { ip_hash; server 192.168.0.1; server 192.168.0.2; } на них идет ссылка через proxy_pass При попадании на страницу, котby reaper - Nginx Mailing List - Russian
I'm also having strange issue with backup statement. Here's my config upstream test { server 10.0.0.1; server 10.0.0.2 backup; } upstream proxy { server 94.1.1.1; # server 95.1.1.1 backup; } server { listen 80; server_name _; access_log off; location / { proxy_pass http://proxy; # proxy_pass http://test; proxy_set_header Host $host; proxy_seby reaper - Nginx Mailing List - English
Hello. I need to install Thawte signed certificate which also requires to specify intermediate CA in site config. Apache config looks like SSLEngine on SSLCertificateFile /etc/apache2/site.crt SSLCertificateKeyFile /etc/apache2/site.key SSLCACertificateFile /etc/apache2/intca.crt How to replace these lines for nginx? Specifically SSLCACertificateFileby reaper - How to...
Hello. Is it possible to write to access.log only requests with 5xx and 4xx status and nothing else?by reaper - How to...