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: proxy_pass



On Thu, 23 Nov 2006, Anton wrote:

>   :  http://www.site.ru/dir   
> http://www.site.ru/dir/.   index.php.
>  nginx   .    :
...
>    dir -> dir/  . 
> proxy_redirect     http://localhost:81/ /;
>   .

  site.ru:81  www.site.ru:81 ?
       proxy_redirect.

# telnet localhost 81
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET http://localhost:81/adm HTTP/1.0

HTTP/1.1 301 Moved Permanently
Date: Thu, 23 Nov 2006 09:31:35 GMT
Server: Apache/1.3.29 (Unix)
Location: http://site.ru:81/adm/

                   ^^^^^^^^^^

Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>301 Moved Permanently</TITLE>
</HEAD><BODY>
<H1>Moved Permanently</H1>
The document has moved <A HREF="http://site.ru:81/adm/";>here</A>.<P>
<HR>
<ADDRESS>Apache/1.3.29 Server at site.ru Port 81</ADDRESS>
</BODY></HTML>
Connection closed by foreign host.

 :
proxy_redirect     http://localhost:81/ http://site.ru/;
 .

proxy_redirect     http://site.ru:81/  /;


 
http://sysoev.ru



 




Copyright © Lexa Software, 1996-2009.