在运行Squeeze(从Lenny升级)的Guruplug(ARM)上,我有一个奇怪的问题,我从来没有来过。
请求不带结尾斜杠的目录将URL重写为默认的server_name
这是我的server_name:
server_name 10.10.10.1 192.168.*.* sheeva.domain.tld sheeva localhost;
每当我访问192.168.1.15 / mrtg我得到redirect到10.10.10.1/mrtg/,这取决于接口,并不总是工作,因为它应该是(IP无法访问)。
$ wget http://192.168.1.15/mrtg -O /dev/null --2011-02-09 22:17:51-- http://192.168.1.15/mrtg Connecting to 192.168.1.15:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: http://10.10.10.1/mrtg/ [following] --2011-02-09 22:17:51-- http://10.10.10.1/mrtg/ Connecting to 10.10.10.1:80... connected. HTTP request sent, awaiting response... 200 OK Length: 3742 (3.7K) [text/html] Saving to: `/dev/null'
我似乎没有其他nginx服务器上的这个问题。 我已经检查configuration文件的差异,但找不到任何。
# nginx -v nginx version: nginx/0.7.67
谢谢
听起来像你需要将server_name_in_redirect设置为closures。