Created
March 27, 2019 02:21
-
-
Save xeptore/638b23afeceddfe0671fe76f68ad774d to your computer and use it in GitHub Desktop.
nginx reverse named proxy configuration with custom headers
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
server { | |
listen 80; | |
server_name api.votak.xeptore.com; | |
location / { | |
proxy_set_header X-Forwarded-For $remote_addr; | |
proxy_pass http://127.0.0.1:9000; | |
} | |
} | |
server { | |
listen 80; | |
server_name votak.xeptore.com; | |
location / { | |
root /home/gridy/public_html/razmdide/front/build; | |
index index.html; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment