httpd-vhosts.conf下配置vhost两个<VirtualHost *:80> DocumentRoot "G:\PhpDemo" ServerName "localhost" <Directory "G:\PhpDemo"> Options Indexes FollowSymLinks AllowOverride all Require all granted </Directory></VirtualHost><VirtualHost *:80> DocumentRoot "G:\MVC" ServerName "www.mvc.com" <Directory "G:\MVC"> Options Indexes FollowSymLinks AllowOverride all Require all granted </Directory></VirtualHost>在windows的host文件中也添加了对应的配置127.0.0.1 localhost127.0.0.1 www.mvc.com但是其他计算机通过ip访问本机还是localhost,如何让其他机器访问到www.mvc.com?
添加回答
举报
0/150
提交
取消