1.Change drive mapping
##ServerAdminpostmaster@dummy-host2.localhost
DocumentRoot"D:/xampp/htdocs/app/public"
ServerNamedummy.localhost
ServerAliaswww.dummy.localhost
ErrorLog"logs/dummy-host2.localhost-error.log"
CustomLog"logs/dummy-host2.localhost-access.log" combined
path: C:\Windows\System32\drivers\etc\hosts
content: 127.0.0.1 dummy.localhost
2.Change the apache sever configuration
本文介绍如何通过修改 hosts 文件和 Apache 服务器配置文件来设置本地虚拟主机。具体步骤包括:将虚拟域名映射到本地 IP 地址,并指定文档根目录及错误日志等。
937

被折叠的 条评论
为什么被折叠?



