Linux/NGINX: Redirect to another server/port by domain name

PHOTO EMBED

Mon Aug 29 2022 19:59:22 GMT+0000 (UTC)

Saved by @marcopinero #vscode

server {
  server_name cmlg.com;

  location / {
        #rewrite ^/(.*) $1 break;
        #proxy_set_header Host $host;
        proxy_set_header Host $http_host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_pass http://cmlg.dyndns.info:8888/;
  }

}
content_copyCOPY