Apache中设置虚拟主机 zz

阅读更多
Apache中设置虚拟主机     -|Evan 发表于 2005-9-11 0:27:00

⑴有两块网卡,在同一端口80做两个WEB
Listen 172.16.0.110:80
Listen 172.16.0.120:80

NameVirtualHost 172.16.0.110:80

        ServerAdmin [email protected]
        DocumentRoot /www/htdocs
        ServerName admin.njuf.com
        ServerAlias admin

NameVirtualHost 172.16.0.120:80

        ServerAdmin [email protected]
        DocumentRoot /www/self
        ServerName self.njuf.com
        ServerAlias self

⑵一块网卡,在不同端口做WEB
Listen 80
Listen 8080

DocumentRoot "/www/htdocs"

    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all

NameVirtualHost *:8080

        ServerAdmin [email protected]
        DocumentRoot /www/self
        ServerName self.njuf.com
        ServerAlias self

你可能感兴趣的:(Apache,WordPress,Web,Blog,HTML)