我想为我本地的项目设置虚拟主机。
我将以下代码添加到文件
我将以下代码添加到文件
C:\xampp\apache\conf\extra\httpd-vhosts.conf
中。<VirtualHost *:80>
DocumentRoot "c:/xampp/htdocs/bab/"
ServerName bab.local
<Directory "c:/xampp/htdocs/bab/">
</Directory>
</VirtualHost>
我把这段代码添加到了C:\Windows\System32\drivers\etc\hosts
文件中。
127.0.0.1 bab.local
请帮忙……
D:/xampp/htdocs/pos
添加到我的Document
和Directory
中。因为我的项目在pos
文件夹下。 - Moeez