我尝试在 Debian 5 和 Debian 6 上以 2 种不同的方式(从源代码和使用 apt-get)安装 Apache Tomcat 5.5 和6 - 没有成功。服务器正在运行,但我无法连接到它。
netstat -a
:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 `hostname`:ssh my_home_ip:4318 ESTABLISHED
tcp 0 52 `hostname`:ssh my_home_ip:remctl ESTABLISHED
tcp6 0 0 [::]:8009 [::]:* LISTEN
tcp6 0 0 [::]:8180 [::]:* LISTEN
tcp6 0 0 [::]:ssh [::]:* LISTEN
udp 0 0 *:mdns *:*
udp 0 …
Run Code Online (Sandbox Code Playgroud) 我试图强制一个 URL 指向一个新位置。例如:
我目前在网站上设置了一个“地图”:
map $uri $is_rewrite {
default no_redirect;
include /home/xxx/conf/web/chambres.com.extra/links.map;
}
Run Code Online (Sandbox Code Playgroud)
...在该文件中,规则之一是:
/gites/ https://$http_host;
#/Gites/ https://$http_host;
/french/Gites/ https://$http_host;
Run Code Online (Sandbox Code Playgroud)
如果我取消注释第 2 行,则会出现错误!
nginx: [emerg] /home/xxx/conf/web/chambres.com.extra/links.map:107 中的参数“/gites/”冲突
当我测试它时,果然,小写的有效,但大写的“Gites”无效。我怎样才能让它不区分大小写?