I have apache 2.2 installed on slackware 10.
What the problem is, is that I get an error 403 "Permission Denied" when trying to access anything other than files in and under /home/main .
http://ack.u13.net/httpd.conf is my httpd.conf is a copy of the 'httpd.conf' file
http://ack.u13.net/httpd-vhosts.conf is a copy of the 'httpd-vhosts.conf' file.
See anything wrong there?
Here is a "ls -l" of whats in the /home dir. Directories are chmod 755 and files are 644.
Code:
root@ack:/home# ls -l
total 44
drwxr-xr-x 2 flab flab 4096 2006-04-23 14:44 flab/
drwxr-xr-x 2 root root 4096 2005-07-14 01:14 ftp/
drwxr-xr-x 3 k9joy k9joy 4096 2006-05-04 00:30 k9joy/
drwx------ 2 root root 16384 2006-01-14 10:00 lost+found/
drwxr-xr-x 3 main main 4096 2006-05-06 15:06 main/
drwxr-xr-x 4 mikeon84 mikeon84 4096 2006-05-06 20:28 mikeon84/
drwxr-xr-x 3 root root 4096 2006-04-23 22:00 test/
drwxr-xr-x 3 uber-mod-gods uber-mod-gods 4096 2006-05-03 01:09 uber-mod-gods/
and a "ls -l" of /home/main/www/
Code:
root@ack:/home/main/www# ls -l
total 30496
-rw-r--r-- 1 root root 807 2006-05-06 20:59 httpd-userdir.conf
-rw-r--r-- 1 main main 1963 2006-05-07 13:54 httpd-vhosts.conf
-rw-r--r-- 1 root root 13654 2006-05-07 13:59 httpd.conf
drwxr-xr-x 2 main main 4096 2006-05-06 18:15 images/
-rw-r--r-- 1 main main 81 2006-05-06 15:25 index
-rw-r--r-- 1 main main 12 2006-05-03 00:48 test.txt
-rw-r--r-- 1 main main 1954 2006-05-03 00:51 vhost-directive.txt
Any suggestions?
EDIT: Alright, after chatting with a few kind folks in #apache on irc.freenode.net I got it working.
It was the <Directory /> directive.
There needed to be a directive for documentroot, so that apache will serve pages from it.