Welcome! Log In Create A New Profile

Advanced

Re: Nginx and Jboss AS

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 юзера
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: 95
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