Re: some problems with http:// -> https:// & phpMyAdmin

2015-11-16 Thread itpp2012
It looks like the backend has not been told yet its running on 443. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,262860,262863#msg-262863 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Selection of secure virtual servers

2015-11-16 Thread Joó Ádám
Francis, Maxim, Thank you for the answers. Ádám ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

some problems with http:// -> https:// & phpMyAdmin

2015-11-16 Thread Gregory Edigarov
server { listen 80; server_name site.com www.site.com; location / { return 301 https://site.com$request_uri; } } server { listen 443; server_name site.com; [certificate setup skipped] # phpMyAdmin location /pma { proxy_set_header Host $http_host;

Re: Is it possible to use 2 variables (one from regexp, the other one from map definition)?

2015-11-16 Thread Maxim Dounin
Hello! On Mon, Nov 16, 2015 at 05:34:10PM +0200, Artem Tomyuk wrote: > Hi all. > > The mission is to conditionally serve *.webp. > > First of all i have map in my http section. > > map $http_accept $webp_suffix { > > default ""; > > "~*webp" ".webp"; > } > > T

Is it possible to use 2 variables (one from regexp, the other one from map definition)?

2015-11-16 Thread Artem Tomyuk
Hi all. The mission is to conditionally serve *.webp. First of all i have map in my http section. map $http_accept $webp_suffix { default ""; "~*webp" ".webp"; } The purpose of this map is to check if the user agent supports the webp. The second thing we need s

Re: Selection of secure virtual servers

2015-11-16 Thread Maxim Dounin
Hello! On Fri, Nov 13, 2015 at 03:37:28PM +0100, Joó Ádám wrote: > Hi, > > I would like to terminate TLS connections arriving at the default > server, only serving requests with the correct host header, relying on > SNI. > > The configuration is as follows: > > server { > listen 80

Re: Selection of secure virtual servers

2015-11-16 Thread Maxim Dounin
Hello! On Sun, Nov 15, 2015 at 12:51:56PM +, Francis Daly wrote: > On Fri, Nov 13, 2015 at 03:37:28PM +0100, Joó Ádám wrote: > > Hi there, > > > I would like to terminate TLS connections arriving at the default > > server, only serving requests with the correct host header, relying on > > S

Re: proxy_pass use proxy

2015-11-16 Thread B.R.
Using the same format as the question for the answer: socks is OSI-layer #5 HTTP is OSI-layer #7 nginx works at HTTP level --- *B. R.* On Mon, Nov 16, 2015 at 8:04 AM, vps4 wrote: > how can proxy_pass use socks5 proxy like 127.0.0.1:7070 > > Posted at Nginx Forum: > https://forum.nginx.org/read