Daniel Armando Rodriguez via nginx
January 28, 2022 08:28AM
Hi there

I have a RP in front of several services and now need to add SSL
passtrough for some of them. So, with this goal set up this config

stream {
map $ssl_preread_server_name $name {
sub1.DOMAIN sub1;
sub2.DOMAIN sub2;
sub3.DOMAIN sub3;
sub4.DOMAIN sub4;
}

upstream sub1 {
server x.y.z.1:443;
}

upstream sub2 {
server x.y.z.1:443;
}

upstream sub3 {
server x.y.z.1:443;
}

upstream sub4 {
server x.y.z.1:443;
}

server {
listen 443;
proxy_pass $name;
ssl_preread on;
}
}

And yes, four subdomains are hosted in the same VM. This has to do with
the peculiarities of the software used.

In order to catch HTTP traffic, and redirect, add this to each subdomain
server.

server {
listen 80;
return 301 https://$host$request_uri;
}

Is this the right way to go or am I missing something?

Also tryied to upgrade nginx using Debian repo but wasn't possible.
Currently installed 1.14.2 under Debian Buster




________________________________________________

Daniel A. Rodriguez
_Informática, Conectividad y Sistemas_
Universidad Nacional del Alto Uruguay
San Vicente - Misiones - Argentina
informatica.unau.edu.ar
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

SSL passtrough

Daniel Armando Rodriguez via nginx January 28, 2022 08:28AM

Re: SSL passtrough

Francis Daly February 02, 2022 08:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 194
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready