Welcome! Log In Create A New Profile

Advanced

Re: Multiple HTTP2 reverse proxy support ?

December 11, 2017 11:19AM
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$request_uri;
}

#https
#example01.com
server {
listen 443 ssl http2;
server_name example01.com;

proxy_pass http://10.0.2.2;

#your config;
}

#foo.example01.com
server {
listen 443 ssl http2;
server_name foo.example01.com;

proxy_pass http://10.0.2.2:12000;

#your config;
}

#example02.com
server {
listen 443 ssl http2;
server_name example02.com;

proxy_pass https://10.0.3.2;

#your config;
}
Subject Author Posted

Multiple HTTP2 reverse proxy support ?

carrotis December 08, 2017 01:18AM

Re: Multiple HTTP2 reverse proxy support ?

Руслан Закиров December 08, 2017 02:20AM

Re: Multiple HTTP2 reverse proxy support ?

joseph-pg December 11, 2017 11:19AM

Re: Multiple HTTP2 reverse proxy support ?

joseph-pg December 11, 2017 12:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 104
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready