当前位置:Gxlcms > PHP教程 > phpstudy虚拟域名配置

phpstudy虚拟域名配置

时间:2021-07-01 10:21:17 帮助过:16人阅读

这篇文章介绍的内容是关于phpstudy虚拟域名配置,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下

第一步:在 C:\Windows\System32\drivers\etc下的hosts文件中添加


第二步:找到Apache 下的httpd.conf 文件 打开,去掉前边的#






第三步: 在vhosts.conf 文件中,配置以下内容


<VirtualHost *:80>

ServerAdmin auth.com
DocumentRoot "D:/phpStudy/WWW/Auth"
ServerName auth.com
ErrorLog "logs/auth.com-error.log"
CustomLog "logs/auth.com-access.log" common

</VirtualHost>

需要注意的: 散装软件中,是默认在httpd-vhosts.conf 这个文件中的,phpstudy 这个软件是在Apache中的vhosts.conf 中,不好搞错了!


http://www.chinacion.cn/article/1535.html


配置虚拟域名 不能以.dev结尾 要以.com结尾 谷歌浏览器会默认强制转到https

相关推荐:

phpstudy php5.4以上版本伪静态设置

以上就是phpstudy虚拟域名配置的详细内容,更多请关注Gxl网其它相关文章!

人气教程排行