【发布时间】: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