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]

HTTP_HOST = REMOTE_ADDR WTF?



!

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 .

? ?

--


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


 




Copyright © Lexa Software, 1996-2009.