Apache将服务器的不同端口绑定不同的站点
首先绑定非80端口
Listen 90 <VirtualHost *:90> ServerAdmin [email protected] DocumentRoot D:\0oes\schooloes ServerName *:90 <Directory "D:\0oes\schooloes"> Options All AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> Listen 8080 <VirtualHost *:8080> ServerAdmin [email protected] DocumentRoot D:\0oes\collegeres ServerName *:8080 <Directory "D:\0oes\collegeres"> Options All AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> Listen 9090 <VirtualHost *:9090> ServerAdmin [email protected] DocumentRoot D:\0oes\schooloes ServerName *:9090 <Directory "D:\0oes\schooloes"> Options All AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>
然后修改80端口的绑定路径
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。