httpd-vhosts.conf下配置vhost兩個(gè)<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文件中也添加了對(duì)應(yīng)的配置127.0.0.1 localhost127.0.0.1 www.mvc.com但是其他計(jì)算機(jī)通過(guò)ip訪問(wèn)本機(jī)還是localhost,如何讓其他機(jī)器訪問(wèn)到www.mvc.com?
WAMP下面配置多臺(tái)虛擬主機(jī),其他計(jì)算機(jī)如何控制訪問(wèn)哪個(gè)網(wǎng)站?
紅糖糍粑
2018-11-13 17:18:35