server {
listen 80;
location / {
return 301 https://$server_name$request_uri;
}}
server {
listen 443;
server_name srv1.example.org;
location / {
proxy_pass https://192.168.0.3;
}}
server {
listen 443;
server_name srv2.example.org;
location / {
proxy_pass https://192.168.0.4;
}}
return 404 message;