Skip to content

Instantly share code, notes, and snippets.

@jwc20
Created August 16, 2024 03:49
Show Gist options
  • Save jwc20/23d9c1227c111fcae75eba04ac8f7f84 to your computer and use it in GitHub Desktop.
Save jwc20/23d9c1227c111fcae75eba04ac8f7f84 to your computer and use it in GitHub Desktop.

nginx for test.example.com

upstream test.example.com {
server 0.0.0.0:8050;
keepalive 64;
}
server {
server_name test.example.com;
location / {
proxy_pass http://test.example.com;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_store off;
}
}
# sudo ln -s /etc/nginx/sites-available/test.example.com /etc/nginx/sites-enabled/test.example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment