飘凌大杂烩网管技术 → apache如何设置多个端口与多个站点?
查看完整版本:apache如何设置多个端口与多个站点?
2008/10/28 10:59:26
 Listen   80  
  Listen   8080  
  Listen   8081  
  <VirtualHost   *:8080>  
          ServerAdmin   webmaster@aa  
          DocumentRoot   C:/phptest/shs/yjtest  
          ServerName   aa  
          ErrorLog   logs/aa_log  
          CustomLog   logs/aa-access_log   common  
  </VirtualHost>  
  <VirtualHost   *:8081>  
          ServerAdmin   webmaster@aa  
          DocumentRoot   C:/phptest/books  
          ServerName   bb  
          ErrorLog   logs/aa_log  
          CustomLog   logs/aa-access_log   common  
  </VirtualHost>  
  加个 VirtualHost    改改DocumentRoot    
Powered by BBSXP 2007 ACCESS © 1998-2025
Processed in 0.01 second(s)