79811314

Date: 2025-11-06 13:27:07
Score: 1
Natty:
Report link

warning ⚠ ne faites pas cette commande cela empeche la connection au serveur

// Source - https://stackoverflow.com/questions/48583321/how-to-remove-port-from-url-for-node-application-using-nginx
// Posted by Harshit
// Retrieved 2025-11-06, License - CC BY-SA 4.0

server_name 21.11.42.250; // your current IP address or domain name
location / {
    proxy_pass http://127.0.0.1:3000; // local running port initialization
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
}
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: xds74