1.在/home/media/下面建立文件夹web和index.htm
mkdir -p /home/media/web
2.在httpd.conf里修改配置
NameVirtualHost 21.244.23.22
ServerAdmin root@admin.com
DocumnetRoot /home/media/web
ServerName www.media.cn
...................
3.selinux/conf里我已经设成了disabled
4.已运行iptables -F
5.运行:chmod 777 /home/media/web 成功
6.运行:chown apache /home/media/web
7.DirectoryIndex index.htm index.html index.php index.html.var
8.
但是还出现问题:
1.重启时apache服务时出现错误:
Starting httpd: Warning :DocumentRoot [/home/media/web] does not exit [ok]
2.访问www.meida.cn/index.htm时出现403错误。
Forbidden
You don't have permission to access /index.htm on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/2.0.52 (Red Hat) Server at www.media.cn Port 80
3.我访问www.media.cn时才正常,出现默认的apache服务器页面。
请各位帮我看下问题出现在哪里。
光明 于 2007-01-14 17:21:00发表:
配置文件
有误!
新的起点 于 2006-12-31 16:29:18发表:
Deny from all ??