1、在配置文件httpd.conf中Listen多个端口

    Listen localhost:8033
    Listen localhost:8083

    .......

2、在配置文件夹下的extra文件夹下httpd-vhosts.conf文件中加入如下内容:

<VirtualHost *:8033>
   DocumentRoot "F:\wamp\www"
   ServerName localhost 
    <Directory "F:\wamp\www" >
    Require all granted
    </Directory>
</VirtualHost>

<VirtualHost *:8083>
   DocumentRoot "F:\BilinCMS"
   ServerName localhost 
   <Directory "F:\BilinCMS" >
     Require all granted
   </Directory>
</VirtualHost>

3、再回到httpd.conf文件下去掉Include conf/extra/httpd-vhosts.conf前面的;

4、重启Apache服务器,OK!

 

相关文章:

  • 2022-12-23
  • 2021-09-08
  • 2021-12-03
  • 2021-05-27
  • 2022-02-24
  • 2022-02-26
  • 2021-11-23
猜你喜欢
  • 2022-03-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案