打开虚拟主机

mac2022-06-30  110

D:\xampp\apache\conf\httpd.conf

# Virtual hostsInclude conf/extra/httpd-vhosts.conf

D:\xampp\apache\conf\extra\httpd-vhosts.conf

##<VirtualHost *:80> ##ServerAdmin webmaster@dummy-host.example.com ##DocumentRoot "D:/xampp/htdocs/dummy-host.example.com" ##ServerName dummy-host.example.com ##ServerAlias www.dummy-host.example.com ##ErrorLog "logs/dummy-host.example.com-error.log" ##CustomLog "logs/dummy-host.example.com-access.log" common##</VirtualHost>

##<VirtualHost *:80> ##ServerAdmin webmaster@dummy-host2.example.com ##DocumentRoot "D:/xampp/htdocs/dummy-host2.example.com" ##ServerName dummy-host2.example.com ##ErrorLog "logs/dummy-host2.example.com-error.log" ##CustomLog "logs/dummy-host2.example.com-access.log" common##</VirtualHost>

转载于:https://www.cnblogs.com/alex-13/p/4456174.html

最新回复(0)