#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2006
    Posts
    34
    Rep Power
    11

    Specific folder not showing in localhost in any browser


    Path to 'htdocs' directory of a specific project I'm working on:
    C:\web\Apache\htdocs\site\project1\webapps\htdocs\index.php

    Path in any browser to preview my work:
    http://localhost/site/project1/webapps/

    But that's as far as the browser takes me. The 'htdocs' directory is not there,
    and when I try to type in the rest of the path I get an internal server error.
    Renaming the 'htdocs' directory does not help.

    The directory shows up in my editor, it shows up on the local side of my FTP software,
    and it shows up when I go to it in Windows Explorer. The only place it won't show up
    is in the browser.

    There are also other directories within 'webapps', and they all show up and are
    accessible. It's only the 'htdocs' directory that's gone.

    This is not a WAMP installation, it's my own setup that's worked since I started doing
    web design in 1999. In all these years I've never seen this happen before.

    Anyone know what's wrong and how to fix it?
  2. #2
  3. Forgotten Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    15,976
    Rep Power
    9615
    Have you looked at the error logs to see why Apache was responding with an internal server error?
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2006
    Posts
    34
    Rep Power
    11
    Found the problem. There was an .htaccess file in the 'htdocs' directory. When I renamed the file, everything worked again. Not sure why that happened, though. I've used .htaccess files locally for years.
  6. #4
  7. Forgotten Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    15,976
    Rep Power
    9615
    I'm 99% sure the problem is what was in the file. Not the fact that the file existed.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2006
    Posts
    34
    Rep Power
    11
    Originally Posted by requinix
    I'm 99% sure the problem is what was in the file. Not the fact that the file existed.
    How would that explain it being fixed simply by renaming it?
  10. #6
  11. Forgotten Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    15,976
    Rep Power
    9615
    Because now it's not a ".htaccess" file.

    Do you... not understand how .htaccess files work?

IMN logo majestic logo threadwatch logo seochat tools logo