linux中提示The requested URL *** was not found on this server
2017-02-09 17:42
711 查看
因为之前别人在服务器上装了nginx,我装了apache后,访问出现The requested URL * was not found on this server,查看了下/etc/httpd/conf/httpd.conf,发现原因:
rewrite_module没开启,开启过程如下:
打开文件:
/etc/httpd/conf/httpd.conf
查找so文件:
LoadModule rewrite_module modules/mod_rewrite.so
将前面”#”去掉,如果不存在则添加上句。
done.
DocumentRoot指向错误,于是修改之,另外确保你的apache开启了rewrite_module模块。 Apache的rewrite_module模块,支持.htaccess。
rewrite_module没开启,开启过程如下:
打开文件:
/etc/httpd/conf/httpd.conf
查找so文件:
LoadModule rewrite_module modules/mod_rewrite.so
将前面”#”去掉,如果不存在则添加上句。
done.
相关文章推荐
- wampserver 的Apache启动错误提示:The requested URL / was not found on this server
- wampserver 的Apache启动错误提示:The requested URL / was not found on this server
- ubuntu14.04 安装LAMP中访问info.php提示The requested URL /index.php was not found on this server.
- The requested URL /get_data.xml was not found on this server.
- The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server
- The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server
- The requested URL *** was not found on this server
- phpmyadmin登陆中遇到The requested URL /phpmyadmin was not found on this server的解决方法
- The requested URL *** was not found on this server
- The requested URL /server-status was not found on this server
- ubuntu 出现 Not Found The requested URL /phpmyadmin/ was not found on this server.
- 有关 phpmyadmin登陆中遇到The requested URL /phpmyadmin was not found on this server的解决方法
- PHP zend framework The requested URL /XXX/public/index was not found on this server
- The requested URL /Users/add was not found on this server.
- 虚拟目录下apache点击报The requested URL* was not found on this server.
- The requested URL /OA_HTML/AppsLogin was not found on this server. 的一个解决办法
- 404 Not Found The requested URL * was not found on this server
- LAMP出现The requested URL *** was not found on this server
- 404 Not Found The requested URL * was not found on this server
- The requested URL /server-status was not found on this server