httpd.conf中#Listen 12.34.56.78:80注释
httpd-vhosts.conf中
Listen 80
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "X:\xampp\htdocs"
ServerName localhost
ErrorLog "logs/error.log"
CustomLog "logs/access.log" common
</VirtualHost>
Listen 81
<VirtualHost *:81>
DocumentRoot "X:\xampp\htdocs\tp\public"
ServerName ip地址
ErrorLog "logs/xx.log"
CustomLog "logs/xx.log" common
</VirtualHost>
更多精彩内容:各种AI课程、技能课程、黑科技软件、网站小程序源码、副业小项目、PPT模板等精品素材、电商课程、推广引流课程等,尽在 天边资源网 。