xampp配置多端口
文章描述:
xampp配置多端口模式
打开httpd.conf
Listen 80
Listen 81
Listen 82
Listen 83
搜索
ServerName localhost:80
ServerName localhost:81
ServerName localhost:82
ServerName localhost:83
2、打开 D:\xampp\apache\conf\extra\httpd-vhosts.conf
<virtualhost *:80>
ServerName localhost
DocumentRoot D:\xampp\htdocs\www\www80
</virtualhost>
<virtualhost *:81>
ServerName localhost
DocumentRoot D:\xampp\htdocs\www\www81
</virtualhost>
<virtualhost *:82>
ServerName localhost
DocumentRoot D:\xampp\htdocs\www\www82
</virtualhost>
<virtualhost *:83>
ServerName localhost
DocumentRoot D:\xampp\htdocs\www\www83
</virtualhost>
发布时间:2022/05/07
发表评论