server { server_name y.mydomain.com; listen 8443 ssl; # external access listen 443 ssl; # internal access access_log /var/log/nginx/y.mydomain.com_access_log main; error_log /var/log/nginx/y.mydomain.com_error_log info; location / { #Generic proxy pass to proxied service proxy_pass http://127.0.0.1:8000; } }