在phpStudy怎么配置虚拟地址

C:phpStudyApacheconf httpd.conf中Include conf/extra/httpd-vhosts.conf去掉注释
进入C:phpStudyApacheconfextra 中httpd-vhosts.conf中配置网址
例子:
<VirtualHost *:80>
DocumentRoot "D:WWWajax"
ServerName www.ajax.com
</VirtualHost>
最后
C:WindowsSystem32driversetchosts (配置网址)
127.0.0.1 www.ajax.com
重启服务器

C:phpStudyApacheconf httpd.conf(解决网址无法访问)
例子

C:phpStudyApacheconf httpd.conf文件中Include conf/extra/httpd-vhosts.conf注释加上
C:phpStudyApacheconfextra中httpd-vhosts.conf全部注释

生命不断追求不止
原文地址:https://www.cnblogs.com/tangtangsimida/p/7478394.html