apache on mandrake 9.1 error 403 forbidden / access?


Subject: apache on mandrake 9.1 error 403 forbidden / access?
From: LT (lee@afabco.com)
Date: Wed Jun 25 2003 - 13:47:29 AKDT


I'm dipping a toe into the water on web serving (kicking and screaming,
but that's not relevant).

The goal is to host two web pages, each for a different domain. These
are www.moe.com and www.curly.net.

This box is a Mandrake 9.1 box, everything off of the mandrake install
cd's and updates. I've put in apache 1.3, once again off the mandrake
RPMs. It is currently on it's own isolated network, with a windows box
as client.

I am making the assumption that this is properly done with the
name-based virtual hosting.

When I point a browser to any of the vhost pages, I get the error:

--

403 - Forbidden

You don't have permission to access / on this server.

--

To which I reply under my breath "I'm not %$%&^* trying to access /". Be that as it may....

HELP!

Details:

Here are the apache RPMs installed:

apache-1.3.27-8mdk apache-conf-2.0.44-11mdk apache-modules-1.3.27-8mdk apache-common-1.3.27-8mdk

The permissions and ownerships all seem to be correct. All in the virtual server subdirs owned by apache.apache. All directories are rwxr-xr-x. All html's are rwxr-xr-x. All everything else is at least global readable.

If I comment out the VirtualHost blocks, and put my web contents in /var/www/html (all owned by root, not apache), works fine. Haven't tried it owned by apache.

I have made everything in the /var/www subdir root.root, just in case, but still get the 403 error.

I've listed the current ownerships and permissions below. Vhosts.conf is at the bottom. httpd.conf and commonhttpd.conf are as mandrake installed them.

I'm at a loss. Any ideas?

------------------------------------------------

ls -la /var

<stuff deleted> drwxr-xr-x 8 root root 92 Jun 25 12:59 www/

ls -la /var/www:

total 24 drwxr-xr-x 8 root root 92 Jun 25 12:59 ./ drwxr-xr-x 27 root root 4096 Jun 23 20:04 ../ drwxr-xr-x 2 root root 51 Jun 23 20:03 cgi-bin/ drwxr-xr-x 3 root root 120 Jun 24 09:48 html/ drwxr-xr-x 3 root root 8192 Jun 23 20:04 icons/ drwxr-xr-x 2 root root 20 Jun 23 20:03 perl/ drwxr-xr-x 2 apache apache 73 Jun 24 22:43 www.curly.net/ drwxr-xr-x 24 apache apache 4096 Jun 24 22:57 www.moe.com/

ls -la www.moe.com total 1368 drwxr-xr-x 24 apache apache 4096 Jun 24 22:57 ./ drwxr-xr-x 8 root root 92 Jun 25 12:59 ../ -rw-r--r-- 1 apache apache 0 Jun 24 22:57 009045 -rw-r--r-- 1 apache apache 15333 Jan 6 2000 2000ny.gif -rw-r--r-- 1 apache apache 6441 Apr 7 2000 20bill.gif -rw-r--r-- 1 apache apache 25129 Jun 17 1999 3demail21.gif -rw-r--r-- 1 apache apache 25129 Dec 7 2000 3demail2.gif -rw-r--r-- 1 apache apache 97983 Mar 8 2000 4thave.jpg -rw-r--r-- 1 apache apache 54416 Dec 3 1999 a_09829_17.jpg -rw-r--r-- 1 apache apache 6503 Apr 7 2000 a_100bill.gif -rw-r--r-- 1 apache apache 1766 Dec 7 2000 a_3demail2.gif -rw-r--r-- 1 apache apache 6583 Apr 7 2000 a_50bill.gif -rw-r--r-- 1 apache apache 7615 Dec 20 2000 a_A__Banner.gif -rw-r--r-- 1 apache apache 3288 Dec 7 2000 a_asis-mem.gif -rw-r--r-- 1 apache apache 1724 Dec 24 1999 a_book3.gif -rw-r--r-- 1 apache apache 2529 Feb 18 2000 a_bu_0.gif -rw-r--r-- 1 apache apache 2064 Feb 18 2000 a_bu_1.gif -rw-r--r-- 1 apache apache 2659 Feb 18 2000 a_bu_8.gif -rw-r--r-- 1 apache apache 2659 Jan 9 2000 a_byline_1.gif -rw-r--r-- 1 apache apache 2656 Apr 7 2000 a_byline_2.gif -rw-r--r-- 1 apache apache 2659 Jan 9 2000 a_byline.gif -rw-r--r-- 1 apache apache 7814 Mar 8 2000 a_clockcam.gif -rw-r--r-- 1 apache apache 1708 Dec 7 2000 a_HOME3.gif -rw-r--r-- 1 apache apache 11296 Mar 8 2000 A_Kim.jpg drwxr-xr-x 17 apache apache 4096 Jun 24 23:00 alarms/ -rw-r--r-- 1 apache apache 2298 Apr 7 2000 a_mastercard.gif -rw-r--r-- 1 apache apache 101194 Dec 1 1999 a_Mvc-011f.jpg -rw-r--r-- 1 apache apache 113768 Dec 1 1999 a_Mvc-014f.jpg -rw-r--r-- 1 apache apache 17399 Mar 8 2000 a_P5011.jpg drwxr-xr-x 2 apache apache 29 Jun 24 22:57 Application/ -rw-r--r-- 1 apache apache 9771 Mar 8 2000 a_Ps-1a-small.gif -rw-r--r-- 1 apache apache 1732 Mar 8 2000 a_Rectangle_5.gif -rw-r--r-- 1 apache apache 1720 Apr 7 2000 a_Rectangle_6.gif -rw-r--r-- 1 apache apache 1678 Mar 8 2000 a_Rectangle_7.gif -rw-r--r-- 1 apache apache 1694 Apr 6 2000 a_Rectangle_8.gif -rw-r--r-- 1 apache apache 1684 Dec 7 2000 a_Rectangle_9.gif -rw-r--r-- 1 apache apache 1668 Mar 8 2000 a_Rectangle.gif -rw-r--r-- 1 apache apache 5214 Feb 18 2000 a_small_teddy.jpg -rw-r--r-- 1 apache apache 2425 Dec 7 2000 a_tallmenu.gif -rw-r--r-- 1 apache apache 25799 Mar 8 2000 a_teddycam.gif -rw-r--r-- 1 apache apache 6569 Mar 8 2000 a_telescopic.gif -rw-r--r-- 1 apache apache 7580 Dec 7 2000 a_Title.gif -rw-r--r-- 1 apache apache 2307 Mar 8 2000 atwork01.gif -rw-r--r-- 1 apache apache 20918 Mar 8 2000 barlites02.gif -rw-r--r-- 1 apache apache 3827 Mar 8 2000 barlites03 -rw-r--r-- 1 apache apache 494 Dec 10 1999 book3.gif -rw-r--r-- 1 apache apache 300 Feb 18 2000 bookmark.gif -rw-r--r-- 1 apache apache 1010 Feb 18 2000 bu__.gif -rw-r--r-- 1 apache apache 1333 Jun 20 2000 BuiltByNOF.gif -rw-r--r-- 1 apache apache 10182 Apr 7 2000 ccards.gif drwxr-xr-x 2 apache apache 22 Jun 24 23:02 cgi-bin/ -rw-r--r-- 1 apache apache 43 Dec 6 2000 clearpixel.gif drwxr-xr-x 2 apache apache 70 Jun 24 23:02 clients/ drwxr-xr-x 5 apache apache 98 Jun 24 23:02 contact/ drwxr-xr-x 9 apache apache 4096 Jun 24 23:02 dhs20y/ -rw-r--r-- 1 apache apache 2789 Mar 8 2000 doityourself.jpg drwxr-xr-x 6 apache apache 4096 Jun 24 22:57 Email/ drwxr-xr-x 2 apache apache 118 Jun 24 23:02 employee/ drwxr-xr-x 3 apache apache 4096 Jun 24 23:03 equipment/ -rw-r--r-- 1 apache apache 15451 Apr 7 2000 everythingpict.gif drwxr-xr-x 2 apache apache 53 Jun 24 23:03 family/ -rw-r--r-- 1 apache apache 989 Dec 7 2000 fdn-logo.gif -rw-r--r-- 1 apache apache 24251 Dec 1 1999 FormMail.pl -rw-r--r-- 1 apache apache 778 May 4 1999 .ftphelp -rw-r--r-- 1 apache apache 30469 Mar 8 2000 _.gif -rw-r--r-- 1 apache apache 320 Apr 7 2000 goIcon.gif -rw-r--r-- 1 apache apache 4308 Mar 8 2000 handset.gif -rw-r--r-- 1 apache apache 16416 Dec 6 2000 Header.gif -rw-r--r-- 1 apache apache 2016 Dec 7 2000 HOME3.gif -rw-r--r-- 1 apache apache 19127 Feb 18 2000 hot.gif -rw-r--r-- 1 apache apache 6674 Apr 7 2000 howtouse.gif drwxr-xr-x 2 apache apache 6 Jun 24 22:57 images/ -rwxr-xr-x 1 apache apache 11937 Feb 7 03:39 index.html* drwxr-xr-x 3 apache apache 151 Jun 24 23:03 info/ drwxr-xr-x 3 apache apache 4096 Jun 24 23:03 info4u/ -rw-r--r-- 1 apache apache 5361 Jan 9 2000 laserlightG.jpg -rw-r--r-- 1 apache apache 51790 Dec 6 2000 mainpage.gif -rw-r--r-- 1 apache apache 4422 Mar 8 2000 marker1.gif -rw-r--r-- 1 apache apache 8628 Mar 8 2000 marker2.gif -rw-r--r-- 1 apache apache 2298 Dec 7 2000 mastercard.gif drwxr-xr-x 18 apache apache 4096 Jun 24 23:04 morrison/ drwxr-xr-x 2 apache apache 112 Jun 24 23:05 mystery/ drwxr-xr-x 2 apache apache 4096 Jun 24 23:06 new/ -rw-r--r-- 1 apache apache 880 Dec 6 2000 newin.gif drwxr-xr-x 12 apache apache 4096 Jun 24 23:06 newsite/ -rw-r--r-- 1 apache apache 14028 Mar 8 2000 personalasst2.jpg -rw-r--r-- 1 apache apache 11495 Mar 8 2000 pircamera1.gif -rw-r--r-- 1 apache apache 40750 Mar 8 2000 pissman.gif -rwxr-xr-x 1 apache apache 2445 Apr 21 1999 postinfo.html* -rw-r--r-- 1 apache apache 16416 Feb 18 2000 Protecting_your_home_and_business_since_1993..gif -rw-r--r-- 1 apache apache 6812 Mar 8 2000 red3dright.gif drwxr-xr-x 3 apache apache 152 Jun 24 23:06 retail/ -rw-r--r-- 1 apache apache 8683 Dec 10 1999 santa11.gif drwxr-xr-x 2 apache apache 95 Jun 24 23:06 services/ -rw-r--r-- 1 apache apache 2604 Dec 6 2000 shopgif.gif -rw-r--r-- 1 apache apache 723 Dec 6 2000 site.css -rw-r--r-- 1 apache apache 16509 Dec 6 1999 small_teddy.jpg -rw-r--r-- 1 apache apache 10848 Apr 7 2000 smartview.gif -rw-r--r-- 1 apache apache 242 Feb 11 2000 smile2.gif -rw-r--r-- 1 apache apache 4458 Mar 8 2000 smokedetcamera1.gif drwxr-xr-x 3 apache apache 4096 Jun 24 23:06 special/ -rw-r--r-- 1 apache apache 6286 Dec 6 2000 SPECIALBUG.gif -rw-r--r-- 1 apache apache 60 Dec 6 2000 style.css -rw-r--r-- 1 apache apache 12455 Dec 7 2000 tallmenu.gif -rw-r--r-- 1 apache apache 5675 Apr 7 2000 tchecks.gif -rw-r--r-- 1 apache apache 15319 Feb 18 2000 teddybear.jpg -rwxr-xr-x 1 apache apache 223 Dec 1 1999 thanks.html* -rw-r--r-- 1 apache apache 5619 Feb 11 2000 tree08.gif -rw-r--r-- 1 apache apache 5820 Apr 7 2000 unitonly.gif -rw-r--r-- 1 apache apache 1576 Dec 6 2000 updated2.gif drwxr-xr-x 5 apache apache 4096 Jun 24 23:06 v65/ -rw-r--r-- 1 apache apache 398 Dec 7 2000 visa.gif drwxr-xr-x 3 apache apache 4096 Jun 24 23:06 window/ -rw-r--r-- 1 apache apache 6616 Mar 8 2000 x10_dc8700_med.gif -rw-r--r-- 1 apache apache 2589 Mar 8 2000 x10logocolor.jpg -rw-r--r-- 1 apache apache 3238 Mar 8 2000 ZF-SM.jpg

/etc/httpd/conf/vconf/Vhosts.conf (important stuff towards the bottom)

################# Vhosts.conf #This is where we store the VirtualHosts configuration. # #Since Apache 1.3.19, we modified the setup to include some nice tricks: # #- We added the User and Group directives so VirtualHosts now work with # suexec directive. If set, Apache will run all cgi scripts under that # user and group (provided the uid and gid are > 100 for security). The # directories and cgi files *must* belong to that user/group for the # feature to work #- We added the Setenv VLOG directive. This works in conjunction with # the CustomLog in common.conf. When Setenv VLOG is set, apache will # create a /var/log/httpd/VLOG-YYYY-MM-<ServerName>.log instead of logging # to access_log. Use this instead of defining a special logfile for # each vhost, otherwise you eat up file descriptors. #- You can also specify a path for the VLOG for each Vhost, for example, # to place the logs in each user's directory. However, if you want to # use the file for accounting, place it in a directory owned by root, # otherwise the user will be able to erase it. #- I suggest only including the ErrorLog *only* if the vhost will use # cgi scripts. Again, it saves file descriptors! #- We added the Rewrite directives so vhosts will work with the # PERLPROXIED configuration

################# IP-based Virtual Hosts #<VirtualHost 192.168.2.100> #User jmdault #Group jmdault #DocumentRoot /home/jmdault/public_html #ServerName test2.com #Setenv VLOG /home/jmdault/logs #ErrorLogs /home/jmdault/test2-error_log #RewriteEngine On #RewriteOptions inherit #</VirtualHost>

################# Named VirtualHosts #NameVirtualHost 111.222.33.44 #<VirtualHost 111.222.33.44> #ServerName www.domain.tld #ServerPath /domain #DocumentRoot /web/domain #</VirtualHost>

NameVirtualHost *

<VirtualHost *> DocumentRoot /var/www/www.moe.com ServerName www.moe.com ServerAdmin webmaster@moe.com </VirtualHost>

<VirtualHost *> DocumentRoot /var/www/www.curly.net ServerName www.curly.net ServerAdmin webmaster@curly.net </VirtualHost>

<VirtualHost _default_:*> DocumentRoot /var/www/html </VirtualHost>

--------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Wed Jun 25 2003 - 13:47:33 AKDT