Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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 '13 at 19:00
The document root is DocumentRoot "/var/www/html" – Dr.Knowitall Mar 13 '13 at 19:49
up vote 2 down vote accepted

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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