+ Reply to Thread
Results 1 to 5 of 5

Thread: Error 403/Forbidden

  1. #1
    mozsumo's Avatar
    mozsumo is offline x10Hosting Member mozsumo is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    20

    Error 403/Forbidden

    I registered a subdomain of my co.cc TLD yesterday and whenever i tried to go to it, it gave me a 403 error (Forbidden). I chmod'ed everthing to 777 (all-access) and it didn't work. I then deleted the subdomain and remade it. The same thing is still happening. Please help me.

    Thanks.


    (Christopher)

    Like my post? Thank me for it!

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Error 403/Forbidden

    Does the subdomain folder contain an index file, as specified by the DirectoryIndex directive? Can you access the subdomain folder via the main domain?
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    mozsumo's Avatar
    mozsumo is offline x10Hosting Member mozsumo is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    20

    Re: Error 403/Forbidden

    there is an index.html file in the folder
    Edit:
    Now, i am just getting the directory of files/folders in the subdomain root folder. There is an index.html file in the list.
    Last edited by mozsumo; 10-17-2009 at 11:22 AM. Reason: Automerged Doublepost


    (Christopher)

    Like my post? Thank me for it!

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Error 403/Forbidden

    In the subdomain folder, find or create a file named .htaccess

    Add or make sure you have the two lines:

    Code:
    Options All -Indexes
    
    DirectoryIndex  index.html
    The first prevents the listing of the contents.
    The second tells Apache to serve up index.html as the default page. You can add more names

    Code:
    DirectoryIndex  index.html  index.php  default.html home.php
    and Apache (the webserver) will pick the first match as the default page.

    Edit:

    also Index.html is not the same as index.html

    Capitalization matters on *nix computers.

    Why this happened:
    You probably have a .htaccess file in your root directory that sets the default page to index.php or something similar. The subdirectory inherits that directive. Putting a .htaccess file in the subdirectory overrides that.
    Last edited by descalzo; 10-17-2009 at 11:37 AM.
    Nothing is always absolutely so.

  5. #5
    mozsumo's Avatar
    mozsumo is offline x10Hosting Member mozsumo is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    20

    Re: Error 403/Forbidden

    thanks. I didn't even think of htaccess. And I know, apache is annoying - capitalization counts


    (Christopher)

    Like my post? Thank me for it!

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers