Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTTP_HOST = REMOTE_ADDR WTF?



, REMOTE_ADDR.
- HTTP_HOST .

2011/1/27 Igor Sysoev <igor@xxxxxxxxx>
On Thu, Jan 27, 2011 at 12:27:59PM +0600, wrote:

> !
>
> Nginx Apache:
>
> upstream backend {
> server 127.0.0.1:88;
> }
> server {
> listen 80;
> server_name mydomain.ru;
>
> location ~* \.(jpg|jpeg|gif|png|ico|css|bmp|swf|js)$ {
> root /var/www/html/mydomain;
> }
>
> location ~ /\.ht {
> deny all;
> }
>
> location / {
> proxy_pass http://backend/;
> proxy_set_header Host $host;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For $remote_addr;
>
> proxy_connect_timeout 120;
> proxy_send_timeout 120;
> proxy_read_timeout 180;
> }
> }
>
> PHP- (phpinfo) ,
> HTTP_HOST, HTTP_X_REAL_IP, HTTP_X_FORWARDED_FOR
> REMOTE_ADDR .

?


--

http://sysoev.ru

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru



--


_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.