Not Found The requested URL / was not found on this server.

http://www.wanysys.cc/coding/php/800.html

今天在做本地PHP项目的时候,想把之前wampserver的本地虚拟服务器环境访问方式改为本地localhost访问方式,打开wampserver的Apache中的http://localhost/显示如下错误,提示The requested URL / was not found on this server.(在服务器上找不到请求的URL),百度各种方法都未解决,很多人的方法都是不加验证的复制粘贴别人的东西,根本就不能解决问题,这里顺便鄙视一下某度。

后来还是在老美的网站上找到了一句话:

提示把Apache的配置文件httpd.conf中的Include conf/extra/httpd-vhosts.conf改为#Include conf/extra/httpd-vhosts.conf,顿时恍然大悟,肯定是因为之前我配置了“wampserver的本地虚拟服务器环境”,而现在我想把本地项目访问从虚拟环境访问(www.wanysys.cc这种方式)改为用http://localhost/这种方式访问,所以导致服务器找不到用户请求的URL,最后,按照上面的提示更改后重启wampserver的Apache服务,发现wampserver的Apache本地访问成功了!!!

时间: 2024-10-11 07:23:52

Not Found The requested URL / was not found on this server.的相关文章

Yii2.0 解决“the requested URL was not found on this server”问题

在你下了 Yii 框架,配置完路由 urlManager 后,路由访问页面会报错"the requested URL was not found on this server",url类似于这种"https://www.cnblogs.com/site/index". 'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false,//不显示.php 'suffix' =

Object not found! The requested URL was not found on this server.... 报错解决方案

服务器(centos6.5) lnmp 报错如下 Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. If you think this is a server error, pleas

虚拟目录下apache点击报The requested URL* was not found on this server.

首先,我yum的httpd,把备份好的文件会存到/data/backup,并且在http.conf中配置虚拟目录 alias /mogodb/ "/data/backup" <Directory "/data/backup">     Options Indexes FollowSymLinks     AllowOverride All     Order allow,deny     Allow from all </Directory>

wampserver 的Apache启动错误提示:The requested URL / was not found on this server.

打开localhost显示以下错误 原因:之前我配置了虚拟主机,所以服务器是从虚拟环境访问的,localhost也就访问不到 解决方法:打开httpd.conf配置文件,将Include conf/extra/httpd-vhosts.conf改为#Include conf/extra/httpd-vhosts.conf(下次配置虚拟主机的时候要重新打开这个选项) 原文地址:http://www.wanysys.cc/coding/php/800.html

解决git提交问题error: The requested URL returned error: 403 Forbidden while accessing

git提交代码时,出现这个错误"error: The requested URL returned error: 403 Forbidden while accessing https" 解决方法: 编辑.git文件夹下的config文件就可以. vim .git/config #改动对于的配置 #原来的url = https://github.com/elitecodegroovy/PhoenixC.git url = https://[email protected]/elitec

解决github push错误The requested URL returned error: 403 Forbidden while accessing

来源:http://blog.csdn.net/happyteafriends/article/details/11554043 github push错误: [html] view plaincopyprint? git push error: The requested URL returned error: 403 Forbidden while accessing https://github.com/wangz/future.git/info/refs git version 1.7.

git 出现 The requested URL returned error: 403

github push错误 fatal: unable to access 'https://github.com/xuzhenguo/authorize.git/': The requested URL returned error: 403 解决方法: vim .git/config 修改前 [remote "origin"] url = https://github.com/xuzhenguo/authorize.git 修改为: [remote "origin&quo

The requested URL ***** was not found on this serve

Wamp的Alias具体是干什么用的,后面要研究一下!!!! 我是之前创建了一个站点用Alias,后来把站点文件移到了www下后,除了首页都访问不了了.显示“The requested URL ***** was not found on this serve ”,于是参考下文把之前创建的Alias删掉,就好了. 引用来自:http://blog.sina.com.cn/s/blog_6d267545010198j8.html 前几天在使用Wamp部署几个站点. 有几个可用, 有几个一直提示"请

【每日学习】Apache重写未开启,导致The requested URL /xxxx.html was not found on this server

今天把项目环境从集成换成独立的,全部搭建好后,网站主页www.xxx.com能打开,但一涉及到跳转,带参数,比如 www.xxx.com/xxx/xxx.html 就会报错 The requested URL /xxxx.html was not found on this server 因为是新搭建的环境,apache的重写未开启,开启重写后,问题解决,方法如下: apache 打开 httpd.conf 文件 找到 #LoadModule rewrite_module modules/mod