Java Mailing List Archive

http://www.apache-httpd.com/

Home » users.httpd »

[users@httpd] '403 forbidden' when trying to serve index.html

Bennett Haselton

2010-07-14

Replies: Find Java Web Hosting

Author LoginPost Reply
A consultant is giving me instructions for compiling a second copy of
Apache on my server to listen on a different port from the main
Apache. The second copy resides under /root/httpd, the httpd.conf
file contains the line

DocumentRoot "/root/httpd/htdocs"

so I assume that attempting to browse
http://66.148.71.117:8080/index.html should attempt to load the
contents of /root/httpd/htdocs/index.html. (This webserver is set to
listen on port 8080 so as not to conflict with the main webserver.)

However, http://66.148.71.117:8080/index.html gives "403 Forbidden"
and we can't figure out why. Here's what I know:

"ps auwx | grep httpd" shows several instances of:

apache   4585 1.0 1.7 30656 17932 ?     S   14:59  1:11
/usr/sbin/httpd
(the main webserver that was originally on the machine)

and several instances of:

daemon   7199 0.0 0.1  4700 1992 ?     S   16:56  0:00
/root/httpd/bin/httpd -k start

which is the test Apache. The permissions on
/root/httpd/htdocs/index.html are:

[root@(protected)
-rw-r--r-- 1 daemon root 53 Jul 13 11:41 /root/httpd/htdocs/index.html
[root@(protected)]#

(that was after I changed ownership of the file to the "daemon" user
to see if that would enable Apache to read it, but it didn't).

and selinux is disabled:

[root@(protected)
SELinux status:           disabled

Since index.html is world-readable, *and* in fact owned by the user
"daemon" (the same user that this custom build of Apache is running
under), any idea why index.html would be bringing up '403 forbidden'?

 -Bennett


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@(protected)
 "  from the digest: users-digest-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.