【发布时间】:2016-10-30 04:47:24
【问题描述】:
我正在尝试在其他设备上查看我的网站,主要是移动设备。我正在使用 Wampserver 3.0 和 apache 2.4.17。我还使用 wampserver 内置的虚拟主机功能来查看我的网站,我的代码不在 wamp64\www\ 文件夹中,而是在我的文档文件夹中。我已经能够允许其他设备查看 wampserver 默认页面,但是每当我访问我的网站时,我都会收到“找不到 fitly 的服务器 DNS 地址”
这里是 httpd-vhosts.conf 文件
<VirtualHost *:80>
ServerName localhost
DocumentRoot C:/wamp64/www
<Directory "C:/wamp64/www/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName fitly
DocumentRoot c:/users/juan/documents/fitly
<Directory "c:/users/juan/documents/fitly/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
【问题讨论】:
标签: apache virtualhost wampserver