使用XAMPP时,在哪里可以找到用于设置虚拟主机的httpd-vhosts.conf文件?
- Windows:
C:XAMPPapacheconfextrahttpd-vhosts.conf
- Mac:
/Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf
- Linux:
/opt/lampp/etc/extra/httpd-vhosts.conf
注意,您必须编辑父文件夹中的httpd.conf
以包含文件:
Include etc/extra/httpd-vhosts.conf
或者,您也可以在默认情况下包含在XAMPP中的httpd-xampp.conf
中插入虚拟主机:
- Windows:
C:XAMPPapacheconfextrahttpd-xampp.conf
- Mac:
/Applications/XAMPP/xamppfiles/etc/extra/httpd-xampp.conf
- Linux:
/opt/lampp/etc/extra/httpd-xampp.conf