> Но указанный финт 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/;
не помогло.
-
engineer