Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2004
    Location
    Phoenix
    Posts
    3

    Error 403 on some virtual hosts and not on others

    I host a small number of domains - about 15 or so.

    I'm in the process of upgrading my main server to BIND 9 and Apache 1.3.29

    I think I've got most the the DNS issues ironed out but I'm having a difficult time making Apache happy with all the virtual hosts.

    I can get Apache to serve any site that is the domain name only. If I duplicate the virtual hosts file and modify it to serve w3.mydomain I get the 403 even though it is pointing at the same document root.


    Any ideas?

  2. #2
    Join Date
    May 2003
    Posts
    472
    Same document root or a folder within the document root of the main domain?

    Make sure that the permissions are set correctly for the folder its pointing to ( type ' ls -l ' for it to list permissions). Typically you will want to chmod 644 .

  3. #3
    Join Date
    Mar 2004
    Location
    Phoenix
    Posts
    3
    Originally posted by DynamoHost
    Same document root or a folder within the document root of the main domain?
    I think I may have deleted the main default site...


    Make sure that the permissions are set correctly for the folder its pointing to ( type ' ls -l ' for it to list permissions). Typically you will want to chmod 644 .
    Here's a listing of all my document roots:

    drwxrwxr-x 16 www admin 544 22 Mar 12:30 .
    drwxrwxr-x 41 root admin 1394 29 May 2002 ..
    drwxr-xr-x 3 root wheel 102 1 Apr 1976 CGI-Executables
    drwxr-xr-x 55 root sr_web 1870 19 Mar 02:49 Documents
    drwxr-xr-x 14 www admin 476 20 Dec 07:38 L3Training.com
    drwxr-xr-x 6 www sr_web 204 25 Apr 2003 battleDressSuite
    drwxr-xr-x 230 www brad_kry 7820 22 Mar 15:28 brad_krysta
    drwxr-xr-x 19 www sr_web 646 5 Mar 21:20 cornerfinder
    drwxr-xr-x 4 root sr_web 136 20 Jan 2001 familyJourneySuite
    drwxr-xr-x 26 www brad_kry 884 18 Nov 08:07 ical.pembertonfamily.com
    drwxr-xr-x 18 www sr_web 612 22 Mar 15:35 pembertonFamily
    drwxr-xr-x 15 www sr_web 510 29 Jul 2003 recipes.pembertonfamily.com
    drwxr-xr-x 18 www sr_web 612 1 Sep 2003 signalriver.com
    drwxr-xr-x 32 www brad_kry 1088 17 Dec 15:12 toffeeshop.com
    drwxr-xr-x 66 www sr_web 2244 27 Sep 07:14 wvcert.org

    Apache will not serve from the following document roots (acutally it is serving but returns a 403 forbidden).
    brad_krysta
    pembertonFamily
    ical.pembertonfamily.com
    recipes.pembertonfamily.com

    All others sites are ok except any site starting with www fails to serve wtih the same forbidden message from Apache.

    I've checked and verfied the default index files and the file system permissions.

    Thanks for the reply.
    Last edited by talismanp4; 03-22-2004 at 08:01 PM.

  4. #4
    Join Date
    Mar 2004
    Location
    Phoenix
    Posts
    3
    Nevermind - I found a bug in the GUI I was using - Server Admin - it was totally munging the .conf files.

    Sorry for the trouble -

    After comparing sites that worked with sites that didn't it was obvious where to fix the files.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •