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:

[r...@sls-ec5p18 bin]# ls -l /root/httpd/htdocs/index.html
-rw-r--r-- 1 daemon root 53 Jul 13 11:41 /root/httpd/htdocs/index.html
[r...@sls-ec5p18 bin]#

(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:

[r...@sls-ec5p18 bin]# sestatus
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-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to