Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
strange /dir -> /dir/ redirect in mapped case
- To: nginx-ru@xxxxxxxxx
- Subject: strange /dir -> /dir/ redirect in mapped case
- From: Dmitry Morozovsky <marck@xxxxxxxx>
- Date: Thu, 6 Jul 2006 10:08:53 +0400 (MSD)
Коллеги,
Вот такой фрагмент конфига
server {
listen 195.54.192.44:80;
server_name _ ;
location / {
root /$sroot;
index index.html index.php;
}
location ~*
\.(ico|jpg|jpeg|gif|zip|exe|t?gz|png|mp3|avi|mpg|mpeg|txt|s?html?|css|js)$ {
root /$sroot;
}
location ~ /\.ht {
deny all;
}
location ~ \.php$ {
proxy_pass http://127.0.0.1;
}
}
Приводит вот к чему:
root@kucha:/usr/local/etc# telnet kucha 80
Trying 195.54.192.44...
Connected to kucha.rinet.ru.
Escape character is '^]'.
HEAD /ports HTTP/1.0
Host: freebsd.rinet.ru
HTTP/1.1 301 Moved Permanently
Server: nginx/0.3.49
Date: Thu, 06 Jul 2006 06:06:30 GMT
Content-Type: text/html
Content-Length: 185
Location: http://_/ports/
Connection: close
Connection closed by foreign host.
Это как???
Sincerely,
D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@xxxxxxxx ***
------------------------------------------------------------------------
|