-
Notifications
You must be signed in to change notification settings - Fork 4
Configuración Nginx
tombatossals edited this page Dec 11, 2014
·
2 revisions
http {
...
upstream app_gps {
server 127.0.0.1:8000;
}
server {
listen 80 default_server;
server_name gps.qui.guifi.net;
access_log /var/log/nginx/gps.qui.guifi.net.access.log main;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://app_gps;
proxy_redirect off;
}
}
}