Apache的配置文件里面。我已经好久没有动了,忘记是哪个了。

解决方案 »

  1.   

    原来有个BindAddress的设置,但是在2.0.46的版本没有!
      

  2.   

    可以用虚拟主机的方法:
    修改/etc/httpd/conf里的httpd.conf
    添加如下内容(其中192.168.0.1是你的主机的IP地址)NameVirtualHost 192.168.0.1
    <VirtualHost 192.168.0.1>
        ServerAdmin [email protected]
        DocumentRoot "/www"
        ServerName www.example.com
        ErrorLog logs/dummy-host.example.com-error_log
        CustomLog logs/dummy-host.example.com-access_log common
    </VirtualHost>