各位大神好,
在下小白一个,我在尝试安装fecshop,现在我去访问127.0.0.1的时候可以正常访问,但是访问http://localhost就访问不了。 提示 Network Error (dns_unresolved_hostname)
Your requested host "localhost" could not be resolved by DNS.
我的C:\Windows\System32\drivers\etc\hosts里面配置如下:
127.0.0.1 localhost
::1 localhost
127.0.0.1 rock.fecshoptest.com # rockmongo的域名指向,rockmongo是mongodb的可视化界面,类似于mysql的phpmyadmin
127.0.0.1 my.fecshoptest.com # mysql的phpmyadmin的域名指向
127.0.0.1 appadmin.fecshoptest.com # 后台域名指向
127.0.0.1 appfront.fecshoptest.com # 前台pc端域名指向
127.0.0.1 appfront.fecshoptest.es # 前台pc端 es 语言的域名指向
127.0.0.1 apphtml5.fecshoptest.com # 前台html端的域名指向
127.0.0.1 appapi.fecshoptest.com # api端的域名指向
127.0.0.1 appserver.fecshoptest.com # server端的域名指向
127.0.0.1 img.fecshoptest.com #appimage/common 图片的域名指向
127.0.0.1 img2.fecshoptest.com #appimage/appadmin 图片的域名指向
127.0.0.1 img3.fecshoptest.com #appimage/appfront 图片的域名指向
127.0.0.1 img4.fecshoptest.com #appimage/apphtml5 图片的域名指向
127.0.0.1 img5.fecshoptest.com #appimage/appserver图片的域名指向
我的D:\Software\wamp\bin\apache\apache2.4.33\conf\extra\httpd-vhosts.conf里面配置如下:
appfront.fecshoptest.es -> xxx/appfront/web
ServerName localhost
ServerAlias localhost
DocumentRoot D:/Software/wamp/www
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
appfront.fecshoptest.com -> xxx/appfront/web
appfront.fecshoptest.es -> xxx/appfront/web
ServerName appfront.fecshoptest.com
ServerAlias appfront.fecshoptest.es
DocumentRoot D:/Software/wamp/www/fecshop/appfront/web
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
麻烦各位大牛,帮忙看一下哪个配置不正确,是不是还有别的地方没有配置?
本文由 michael 创作,采用 知识共享署名 3.0 中国大陆许可协议 进行许可。
可自由转载、引用,但需署名作者且注明文章出处。