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]

IP- .


  • To: nginx-ru@xxxxxxxxx
  • Subject: IP- .
  • From: Bogdan <bogdar@xxxxxxxxx>
  • Date: Tue, 13 May 2014 21:00:57 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=LScrdL7EGbf4OK0vtphPHrSqcL8iCzeQFb1rablaS44=; b=1CRmMX7dxNCjadcA9gevFyiDWlIWDABRaSDV+PEOu7QRmCPRTwj1MRJ+XVMJ+sYk+q 8V2E+NQtY5bQUWfyDIqzixuXcOsE/Ed2VidNK0Y9DDrnCj/3fLCGW1HLPqLUFvEQGBUi 6OvYqm+5TtcuuOY7x03pnD7pAZOGgoqz2k37Ukym9X1wztqCujIyoxqwrQZ9U43ESQj4 dJrRnOMj8nJhcp+dq8Y0s7OQfH29N1czMz2FfgrWVuJhm1CcOpwWKZi5lKrO1IIZ+wH6 3bPUUj37OPv/qqQNDNr4ymMtmy0ycr3dlV8rtJdPpAz5IpjjOYdY+N3QVkKrv7KVcUiW JUwg==

.

Nginx 1.6.0, .

httpd:

GET /pma HTTP/1.1
Host: host.tld

HTTP/1.1 301 Moved Permanently
Date: Tue, 13 May 2014 17:45:39 GMT
Server: Apache/2.2.15 (CentOS)
Location: http://host.tld/pma/
Content-Length: 236
Connection: close
Content-Type: text/html; charset=iso-8859-1

nginx:

GET /pma HTTP/1.1
Host: host.tld

HTTP/1.1 301 Moved Permanently
Server: nginx/1.6.0
Date: Tue, 13 May 2014 17:47:33 GMT
Content-Type: text/html; charset=iso-8859-1
Content-Length: 233
Connection: keep-alive
Location: http://1.2.3.4/pma/

1.2.3.4 - IP- .
HTML- , .

.

server {
listen 11.22.33.44:80 default_server;
server_name _;
access_log /var/log/nginx/default.access.log main;

server_name_in_redirect off;

location / {
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:80;
}
}

Ś server_name_in_redirect proxy_redirect default - , ӣ IP- . ̚ telnet.
--
WBR, Bogdan B. Rudas
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.