Created
December 21, 2015 02:09
-
-
Save martip07/72d1b824d95ae7a23489 to your computer and use it in GitHub Desktop.
Configuración básica de NGINX + Proxy
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; | |
server_name example.com; #example.com es el nombre de dominio | |
location / { | |
proxy_pass http://localhost:8080; #8080 es el número de puerto que con el que nos vamos a comunicar | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_buffering off; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment