Re: Multiple HTTP2 reverse proxy support ?

2017-12-11 Thread joseph-pg
Edit: proxy_pass should be put inside a location block. Example: location / { proxy_pass http://10.0.2.2; } Posted at Nginx Forum: https://forum.nginx.org/read.php?2,277698,277735#msg-277735 ___ nginx mailing list nginx@nginx.org http://mailman.ng

Re: Multiple HTTP2 reverse proxy support ?

2017-12-11 Thread joseph-pg
It's possible. #put this in the http context proxy_http_version 1.1; #default is HTTP/1.0 - #example server blocks #redirect to https server { listen 80; server_name "~^(.+\.)?example\d{2}\.com$"; #regex to match example[number].com and *.example[number].com return 301 https://$host$

Re: -e vs -f and -d

2017-12-11 Thread Maxim Dounin
Hello! On Mon, Dec 11, 2017 at 09:51:51AM -0500, drook wrote: > Hi, > > Considering that I don't have symbolic links why do these configs work > differently ? > > ===config one=== > if (!-f $request_filename) { > rewrite ^/(.*)$ /init.php; > } > if (!-d $request_filename) { > rewrite ^/

-e vs -f and -d

2017-12-11 Thread drook
Hi, Considering that I don't have symbolic links why do these configs work differently ? ===config one=== if (!-f $request_filename) { rewrite ^/(.*)$ /init.php; } if (!-d $request_filename) { rewrite ^/(.*)$ /init.php; } ===config one=== This one above works, rewrite happens. Being cha