Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Nginx and Jboss AS
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 юзера
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,243184,243227#msg-243227
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|