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 tempor

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? http://nginx.org/en/docs/http/converting

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 hand

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 http://mailman.nginx.org/mail

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 ExpiresActive

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 ExpiresB

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 transferr