Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

http://localhost/profile-pics/default.jpg

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 ...

var/www/

profile-pics/ html/ cgi-bin/

I'm using Fedora

share|improve this question
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 '13 at 19:00
    
The document root is DocumentRoot "/var/www/html" –  Mr.Student Mar 13 '13 at 19:49
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.