I'm trying to access a file from my localhost via


however apache keeps saying that the url doesn't exists 404. How can I configure apache to find my file? My directory is as follows ...


profile-pics/ html/ cgi-bin/

I'm using Fedora

  • 2
    What does the config say where the DocumentRoot is? I guess it is rather /var/www/html/ than /var/www/ (or none of both).
    – Lukas
    Mar 13, 2013 at 19:00
  • The document root is DocumentRoot "/var/www/html" Mar 13, 2013 at 19:49

1 Answer 1


Because the DocumentRoot is /var/www/html, you should move your profile_pics folder into it (/var/www/html/profile_pics). Simple as that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.