DEV Community

trytrynginx
trytrynginx

Posted on

Nginx with IIS server

Hi Guys,
I got an issue with Nginx. I would like to know can Nginx working with IIS binding Hostname in website?
My Lab environment
Nginx x1 , IIs x1
Nginx Config:ssl passthrough
stream {
map $ssl_preread_server_name $name {
site1.a.com web601.newdc.com:443;
site2.a.com web602.newdc.com:443;
}
server {
listen 443;
proxy_pass $name;
ssl_preread on;
}
}

IIS settings
image
Testing 1: Site1 not checked the SNI
image
Browser on Client to https://site1.a.com and got the result 404
image

Testing 2: Site2 checked the SNI
image
Browser on Client to https://site2.a.com and got the result
image

If you guys got any hints, please please please let me know. Thank you all.

Top comments (0)