tar zxvf httpd-2.2.3.tar
./configure --prefix=/usr/dong
make
make install
把yahoo.html放在 /usr/dong/htdocs/yahoo下面
/usr/dong/conf/httpd.conf
directoryindex yahoo.html index.html
serverAdmin webmaster@dummy-host.example.com
documentRoot /usr/dong/htdocs/yahoo
servername www.yahoo.com
errorlog logs/dummy-host.exalple.com-error_log
customlog logs/dummy-host.example.com-access_log common
本机IP是192.168.2.110
但是从新启动 /usr/dong/bin/apachectl restart出现了下面的情况,如何改呀?
liunx0129 于 2009-04-15 09:04:49发表:
又学到了最基础的知识了,俺也有过同样的错误
lifeng.0619 于 2009-03-09 19:42:28发表:
你没有定义80端口或者是其他的端口 这个需要在创建虚拟目录的时候写的
hailang1988 于 2009-01-20 12:31:15发表:
还有就是关于IP的格式:有2种情况:
1.在httpd.config配置文件里添加
NameVirtualHost *:80
.......这里我就省略不写了
或者2
NameVirtualHost 192.168.2.110:80
.......这里我就省略不写了
hailang1988 于 2009-01-20 11:54:01发表:
把yahoo.html放在 /usr/dong/htdocs/yahoo下面
把yahoo.html重命名为index.html