September 28, 2013 03:36AM
location ~ /myapp/ {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
}

еще можно добавить

proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

чтобы на бекенде видеть реальный ip юзера


28 сентября 2013 г., 10:12 пользователь Vurtatoo <nginx-forum@nginx.us>написал:

> Было бы круто, если Вы покажете пример, буду рад.
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?21,243184,243225#msg-243225
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru
>
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Nginx and Jboss AS

Vurtatoo September 27, 2013 05:10AM

Re: Nginx and Jboss AS

Роман Москвитин September 27, 2013 06:00AM

Re: Nginx and Jboss AS

Vurtatoo September 28, 2013 03:12AM

Re: Nginx and Jboss AS

Sargas September 28, 2013 03:36AM

Re: Nginx and Jboss AS

Sargas September 28, 2013 03:36AM

Re: Nginx and Jboss AS

Gena Makhomed September 30, 2013 05:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 102
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready