【问题标题】:localhost always redirect to localhost/projects directory in wampserverlocalhost 始终重定向到 wampserver 中的 localhost/projects 目录
【发布时间】:2017-07-18 10:32:34
【问题描述】:

我遇到一些奇怪的问题,每次我在地址栏中键入“localhost”时,它总是重定向到 localhost/projects。

我已经在 httpd.conf 中更改了配置

DocumentRoot "c:/wamp"
<Directory "c:/wamp">

在 httpd-vhost.conf 中

DocumentRoot c:/wamp
<Directory  "c:/wamp/">

在 etc/hosts 文件中如下

# localhost name resolution is handled within DNS itself.
127.0.0.1       localhost
::1             localhost
127.0.0.1 lmlicenses.wip4.adobe.com
127.0.0.1 lm.licenses.adobe.com
127.0.0.1 na1r.services.adobe.com
127.0.0.1 hlrcv.stage.adobe.com
127.0.0.1 practivate.adobe.com 
127.0.0.1 activate.adobe.com

*注意:我已经从我的机器中删除了纯 Wampserver,这种情况仍然会发生。

我不知道在哪里检查这个问题了。请帮忙。提前谢谢你。

【问题讨论】:

  • 我已经在 httpd.conf 中更改了配置 应该是 我已经搞砸了 httpd.conf 中的配置 放它回到原来的样子
  • 对不起,RiggsFolly,即使我把原始文件放回去或重新安装,它还是一样。

标签: apache localhost wampserver


【解决方案1】:

问题解决了!

  1. 检查 httpd.conf
  2. 检查虚拟主机
  3. 在 etc/host 中清除 DNS 查找
  4. 清除所有缓存

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-12-11
    • 2016-01-21
    • 2015-03-17
    • 2018-01-21
    • 1970-01-01
    • 2022-10-20
    • 2013-09-14
    • 2018-08-07
    相关资源
    最近更新 更多