Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2008
    Somerset, UK

    Strange 404 error on VPS.

    Hey guys,

    I'm posting on behalf of a friend. He recently purchased a VPS, has set up everything and is now starting to use it. He has created the directory /insomnia under his main domain However, when you visit it gives a 404 error. Now comes the twist in the tale: there are images inside that folder that are displaying on a different site, so the folder is obviously there, and is avaialable, but is still displaying the 404 error instead of the directory listing.

    Does anyone know of a reason as to why this 404 error is displaying? Is it an error in the setup of the VPS?

    Any help is appreciated!

  2. #2
    Join Date
    Jun 2008
    If you are just wanting it to list the files in the contained directory have you turned on indexing of the folder?

  3. #3
    It seems like directory listing is disabled in apache conf.
    To enable directory listing (indexing) for a given directory, put the following entry
    Options +Indexes
    into a .htaccess file in document root directory (or a subdirectory thereof).

    If the issue persists, check the apache error log.

  4. #4
    Join Date
    Mar 2005
    Labrador, Canada
    This isn't an error caused by Apache directory listing being disabled. If it was, the error would be "403 - Forbidden".

    A 404 error is "Not found". The directory isn't there. Either your friend created the directory in the wrong place or the Apache virtual hosts configuration has an error.

  5. #5
    Join Date
    Mar 2009
    Austin Tx
    Sleddog is exactly right. This isn't a directory listing issue.

    Check httpd.conf and see where you are pointing your documentroot. The /insomnia folder should be under there, unless it's been named as an alias.
    This is the best signature in the world....Tribute!
    (It is not the best signature in the world, no. This is just a tribute)

  6. #6
    Join Date
    Apr 2008
    Somerset, UK
    It was as bigks said. He hadn't turned on the indexing of the folder lol. He had assured me he had gone through all the settings :/

    Anyway, cheers for the help guys

Similar Threads

  1. A rather strange PHP error
    By StueyB in forum Programming Discussion
    Replies: 1
    Last Post: 01-10-2008, 09:43 AM
  2. Strange Error
    By Koopa in forum Web Hosting Lounge
    Replies: 1
    Last Post: 06-02-2006, 08:28 AM
  3. Strange DNS Error
    By Mans in forum Dedicated Server
    Replies: 10
    Last Post: 06-08-2005, 07:41 PM
  4. Strange FTP error
    By cbwass in forum Hosting Security and Technology
    Replies: 2
    Last Post: 02-23-2004, 01:31 PM
  5. Strange WHT error
    By macdonaldp in forum WHT Announcements, Feedback and Questions
    Replies: 7
    Last Post: 01-09-2004, 09:58 AM

Posting Permissions

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