Re: cache all endpoints but one: nginx settings

2016-10-10 Thread gg4u
Update about FLASK: as you indicated in: I am using errorhandler decorator, but returning a template in the handler function: @application.errorhandler(404) def error_404(e): application.logger.error('Page Not Found: %s', (request.path)) #return render_template('404.html'), 404

Re: cache all endpoints but one: nginx settings

2016-10-10 Thread gg4u
thank you Maxim, I ll try with your suggestions. So basically, if I have a "production" server and a proxy server in front of it, I just need cache on the proxy server (http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_valid) , and not cache responses on the production server?

Re: invalid url - my config or invalid request?

2016-10-10 Thread Valentin V. Bartenev
On Monday 10 October 2016 10:19:55 Daniel Miller wrote: > My site is generally doing exactly what I want. Periodically I'll see > some errors in the log. I'm trying to determine if these indicate > problems in my config, or potential attacks, or simply a broken client. > > The last few lines i

invalid url - my config or invalid request?

2016-10-10 Thread Daniel Miller
My site is generally doing exactly what I want. Periodically I'll see some errors in the log. I'm trying to determine if these indicate problems in my config, or potential attacks, or simply a broken client. The last few lines in my log: 2016/10/05 14:38:37 [error] 17912#0: *17824 invalid url

Re: Clientbodyinfileonly - POST request is discarded

2016-10-10 Thread Francis Daly
On Mon, Oct 10, 2016 at 03:41:13AM -0400, yurai wrote: Hi there, > thank you for response. I just want to transfer big file on Nginx server > inside POST request. I use method from: > https://coderwall.com/p/swgfvw/nginx-direct-file-upload-without-passing-them-through-backend > > Whole my analy

Re: Allow PHPMyAdmin access on certain virtual hosts - Ubuntu and Nginx

2016-10-10 Thread Francis Daly
On Mon, Oct 10, 2016 at 04:29:27AM -0400, mrast wrote: Hi there, > there were symlinks in website1.com and website3.com roots public > directories for phpmyadmin - symlinked to /usr/share/phpmyadmin. It's good that you found an answer that works for you. > > if ($http_cookie ~* £PHPSESSID"){ >

Re: 5s hangs with http2 and variable-based proxy_pass

2016-10-10 Thread Chris West
You are correct, the DNS server (Google Public DNS) isn't responding to the requests. I don't know if this is because the UDP packets are getting lost due to the flood generated, or if it thinks it's an attack. Ramming dnsmasq in the middle fixes it, but I don't really understand why, as the test

Re: 5s hangs with http2 and variable-based proxy_pass

2016-10-10 Thread Valentin V. Bartenev
On Monday 10 October 2016 12:34:18 Chris West wrote: > If you enable http2, our proxy setup develops 5s hangs, under load. > This happens from at least Chrome/linux, Firefox/linux and Edge/win10. > > Any suggestions on how to further diagnose this problem, or work out > where this "5 second" numbe

5s hangs with http2 and variable-based proxy_pass

2016-10-10 Thread Chris West
If you enable http2, our proxy setup develops 5s hangs, under load. This happens from at least Chrome/linux, Firefox/linux and Edge/win10. Any suggestions on how to further diagnose this problem, or work out where this "5 second" number is coming from? Full reproduction config and debug logs are a

mail-proxy starttls and ssl on

2016-10-10 Thread bobykus
The manual Setting up SSL/TLS for a Mail Proxy https://www.nginx.com/resources/admin-guide/mail-proxy/ says Enable SSL/TLS for mail proxy with the ssl directive. If the directive is specified in the mail context, SSL/TLS will be enabled for all mail proxy servers. You can also enable STLS an

Re: Allow PHPMyAdmin access on certain virtual hosts - Ubuntu and Nginx

2016-10-10 Thread mrast
Hi Francis, Wow, this gets stranger..who have cracked it for mebut i have no idea how or why it got there! there were symlinks in website1.com and website3.com roots public directories for phpmyadmin - symlinked to /usr/share/phpmyadmin. I never noticed them though as they didnt appear a

Re: Clientbodyinfileonly - POST request is discarded

2016-10-10 Thread yurai
Hello Francis, thank you for response. I just want to transfer big file on Nginx server inside POST request. I use method from: https://coderwall.com/p/swgfvw/nginx-direct-file-upload-without-passing-them-through-backend Whole my analysis and expectations are based on this article. Unfotunatel