apache多域名多ip多端口的配置 31 July 2010 22:22 Saturday by 小屋 浏览(3598)

 

之前就有一篇:apache同一ip设置多端口访问

#由于是多 ip 监听同一个端口所以这样写
Listen 80

#若是多ip 多端口 则是
#Listen 192.170.2.1:80
#Listen 192.170.2.5:8000

#由于使用多ip NameVirtualHost这样设置
NameVirtualHost 1.2.3.4:80
NameVirtualHost 5.6.7.8:80

#第一个ip给域名www.sjolzy.cn

 DocumentRoot /www/sjolzy.cn/

阅读全文>>

apache同一ip设置多端口访问 17 May 2010 17:54 Monday by小屋 浏览(2774)

Listen 192.168.2.148:2000
NameVirtualHost 192.168.2.148:2000
<VirtualHost 192.168.2.148:2000>
        DocumentRoot D:/chen/www/nikefed
        DirectoryIndex index.html index.php
        ServerName 192.168.2.148:2000
        <Directory "D:/chen/www/nikefed">
        AllowOverride all
        Allow from all
         Options -Indexes
        </Directory>
</VirtualHost>

阅读全文>>