虚拟主机配置xammp

1.开启虚拟主机功能
       在 /Applications/XAMPP/xamppfiles/etc/httpd.conf文件中,搜索"httpd-vhosts.conf",取消Include etc/extra/httpd-vhosts.conf这个注视。
2.配置访问目录权限
       在这个/Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf文件中,最底部添加一下内容:
<VirtualHost *:80>
DocumentRoot "/Users/yourUserName/PhpstormProjects/localhost/curtain"
ServerName www.curtain.org
<Directory "/Users/yourUserName/PhpstormProjects/localhost/curtain">
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
3.启动apache,预览地址www.curtain.org
发布了32 篇原创文章 · 获赞 13 · 访问量 8万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章