nginx for test.example.com
Created
August 16, 2024 03:49
-
-
Save jwc20/23d9c1227c111fcae75eba04ac8f7f84 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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