|
|
首先apache已经安装好,在浏览器中输入本机ip可以看到测试页。
/etc/httpd/conf/httpd.conf文件有关配置如下:
DocumentRoot /usr/share/doc/HTML/
<Directory /usr/share/doc/HTML/>
NameVirtualHost 192.168.1.5
<VirtualHost 192.168.1.5>
serverAdmin root@hbc.com
DocumentRoot /usr/share/doc/HTML/www
ServerName www3.hbc.com
</VirtualHost>
<VirtualHost 192.168.1.5>
serverAdmin root@hbc.com
DocumentRoot /usr/share/doc/HTML/ftp
ServerName ftp1.hbc.com
</VirtualHost>
我在/usr/share/doc/HTML/www下放了www.html文件,在/usr/share/d ... ftp.html文件。
DNS已经配置好,域名服务器是www.hbc,com,ip是192.168.1.1
host 192.168.1.5 输出如下
5.1.168.192.in-addr.arpa domain name pointer ftp1.hbc.com.
5.1.168.192.in-addr.arpa domain name pointer www3.hbc.com.
host www3.hbc.com 输出如下
www3.hbc.com has address 192.168.1.5
在浏览器通过ip 192.168.1.5访问,无法访问,提示超时。通过www3.hbc.com也无法访问。出错日志如下:
[Sat Jul 09 09:32:21 2005] [notice] caught SIGTERM, shutting down
[Sat Jul 09 09:32:22 2005] [notice] Digest: generating secret for digest authentication ...
[Sat Jul 09 09:32:22 2005] [notice] Digest: done
[Sat Jul 09 09:32:23 2005] [notice] Apache/2.0.40 (Red Hat Linux) DAV/2 configured -- resuming normal operations
恳请各位高手指点迷津! |
|