linux环境下,路径是区分大小写的,在apache部署下的web应用,有时候出现大小写不匹配导致无法访问。
apache可以支持不区分大小写,speling_module模块
#vi /etc/httpd/conf/httpd.conf
增加或者前面#去掉
LoadModule speling_module modules/mod_speling.so
设置目录
<Directory "/var/www/html/xxx"> CheckSpelling ON </Directory>
重启httpd
#/etc/init.d/httpd restart
额 本文暂时没人评论 来添加一个吧
发表评论