apache如何设置多个端口与多个站点? |
|
发起人:xiang6963 回复数:0 浏览数:5678 最后更新:2008/10/28 10:59:26 by xiang6963 |
选择查看 | 搜索更多相关主题 帖子排序: |
xiang6963 发表于 2008/10/28 10:59:26
|
apache如何设置多个端口与多个站点? 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 |
返回页首↑ |