(含phpstudy)Windows下配置虚拟域名总结
大家好,我是Yangrl,今天正好配虚拟域名。本以为几分钟搞定,结果又掉坑里了!
不说废fa ↓
环境:集成环境phstudy
操作系统: windows 10
1):修改hosts文件,添加虚拟域名->C:\Windows\System32\drivers\etc\hosts
在hosts文件最下面添加你的地址和对应的虚拟域名,比如:127.0.0.1 test.com
2):找到配置文件 httpd.conf
位置在你安phpstudy的盘符比如 F:\phpStudy\PHPTutorial\Apache\conf
打开 httpd.conf 文件,ctrl+f 搜索 ht