apache配置多个端口给不同网站

配置apache\conf\httpd-vhosts.conf(http网站)和apache\conf\httpd-ssl.conf(https网站)
找到Listen 80或Listen 443,下面添加一个监听端口Listen 81或Listen 4433,
这样就可以浏览 http://localhost:81/ 或 https://localhost:4433/ 了。
具体不同网站配置通过标签来设置,

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注

字数:0

字数:0