nginx hogs cpu on Windows

2017-06-12 Thread Igal @ Lucee.org
Hello, I've noticed a few times already that after running for some time nginx hogs a CPU thread. The machine has 8 CPU threads, so when the problem happens I see in Task Manager that nginx takes 12% or 13% (consistent with a full 1/8 of CPU power). Issuing a reload fixes the problem

Re: apache rewrite to nginx

2017-06-12 Thread Aleksandar Lazic
Title: Re: apache rewrite to nginx Hi Frank Dias. Frank Dias wrote on 12.06.2017: I need some help, migrating from Apache to Nginx. The following logic is in Apache, how do I convert to Nginx Where do you stuck? Have you tried this docs to start?

apache rewrite to nginx

2017-06-12 Thread Frank Dias
I need some help, migrating from Apache to Nginx. The following logic is in Apache, how do I convert to Nginx DocumentRoot "/var/www/default" ServerName *.diasranch.net SSLProxyEngine On ProxyPreserveHost On RewriteEngine on RewriteMap host_finder prg:/usr/local/bin/host_finder.php # Rule to

Re: nginx equivalent for ExpiresByType / FilesMatch

2017-06-12 Thread Pratyush Kumar
I think you can make use of this blockThats how i dolocation ~* \.(?:ico|css|js|gif|jpe?g|png|woff2)$ {    expires 30d;    add_header Pragma public;    add_header Cache-Control "public";}___ nginx mailing list nginx@nginx.org

Re: check file existence on multiple backends

2017-06-12 Thread chmind
Спасибо. Похоже то что надо. > On 12 Jun 2017, at 16:54, SK wrote: > > Посмотрите в сторону proxy_next_upstream > > SK > > 12 июня 2017 г., в 16:42, chm...@yandex.ru > написал(а): > >> Добрый день. >> >> Подскажите пожалуйста, можно ли

Re: check file existence on multiple backends

2017-06-12 Thread SK
Посмотрите в сторону proxy_next_upstream SK > 12 июня 2017 г., в 16:42, chm...@yandex.ru написал(а): > > Добрый день. > > Подскажите пожалуйста, можно ли используя nginx реализовать подобную схему > > / - backend1 > nginx proxy / > \ -

check file existence on multiple backends

2017-06-12 Thread chmind
Добрый день. Подскажите пожалуйста, можно ли используя nginx реализовать подобную схему / - backend1 nginx proxy / \ - backend2 — /imgs/static1.png на nginx приходит запрос domain.com/imgs/static1.png

Re: nginx equivalent for ExpiresByType / FilesMatch

2017-06-12 Thread Jim Ohlstein
Hello, On 06/12/2017 09:36 AM, ST wrote: Hello, I continue to move my configuration from Apache to nginx and now need to convert following directives. Any hints? Thank you for all the previous help! 1. # set up max-age header directive for certain file types for proper caching

nginx equivalent for ExpiresByType / FilesMatch

2017-06-12 Thread ST
Hello, I continue to move my configuration from Apache to nginx and now need to convert following directives. Any hints? Thank you for all the previous help! 1. # set up max-age header directive for certain file types for proper caching ExpiresActive on ExpiresByType text/css A604800

proxy_buffering off; does not work!

2017-06-12 Thread juanzi
Hi All, I tried to set proxy_buffering off in nginx.conf to avoid the buffering time of the proxy. It was expected to work so that the proxy can immediately transfer the response message from the server to the client. But it did not work. Just several beginning packets are immediately

nginx SSL проксирование на apache SSL бесконечный цикл из Iphone браузера safari

2017-06-12 Thread Saytik
Добрый день. Centos 6 # nginx -V nginx version: nginx/1.12.0 built by gcc 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) built with OpenSSL 1.0.1e-fips 11 Feb 2013 TLS SNI support enabled При заходе на сайт из iphone страница не грузится зависат и потом ошибка что соединение прервано.

slice module issue if redirected origin and have have fist slice

2017-06-12 Thread George .
​​Hi, I've discovered following strange issue with http_slice_module If I have a named location for internal 302 redirect and caching one slice makes further request for whole object to brake upstream redirected request (missing Rage header, see frame 254 in the attached capture ​