Created
January 22, 2020 22:06
-
-
Save MarcL/582ba72c0251ba6ac26408e0e92942ae to your computer and use it in GitHub Desktop.
Reverse proxy configuration for nginx
This file contains 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
server { | |
listen 80; | |
# Replace this with your domain | |
server_name www.mysite.com; | |
location / { | |
proxy_set_header X-Forwarded-For $remote_addr; | |
proxy_set_header Host $http_host; | |
proxy_pass http://localhost:8080; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment