Estoy tratando de configurar un servidor nginx como proxy inverso
Mi meta es :
cuando una cinta de usuario en el navegador http://@IP nginx server/app1 app1 será redirigido a la aplicación1, que la aplicación1 está ejecutando en un servidor diferente
esta es mi configuración:
server { client_max_body_size 100M; listen 80; server_name 172.16.20.15; fastcgi_hide_header Set-Cookie; location / { add_header Set-Cookie "lcid=1033;Domain=.ebrueggeman.com;Path=/;Max-Age=31536000"; gzip_static on; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; 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; # This is necessary to pass the correct IP to be hashed real_ip_header X-Real-IP; root html; index index.html index.htm; try_files $uri $uri/ /index.html; } location /app/ { proxy_pass http://172.16.20.17:3333/ ; proxy_http_version 1.1; proxy_set_header Host $host; proxy_buffering off; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; } location /sam/ { proxy_pass http://172.16.20.17:4444/ ; proxy_http_version 1.1; proxy_set_header Host $host; proxy_buffering off; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; } } } Chrome show: not found cuando grabo https://172.16.20.15/app/
¿Alguna idea o código para anunciar en mi configuración?
Gracias