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.

Don't know if this question is appropriate here.

I created an Alias directed to the root folder of the website (right now running on localhost). In the root folder, I have a custom 404 page, and I've added a .htaccess file in that folder with the "ErrorDocument 404 /404.html" line, but it still doesn't work.

I'm pretty new to this stuff (web servers), so I must be missing something obvious. Any suggestions greatly appreciated.

share|improve this question
    
what has the error_log of apache to say about this problem? –  Christian Feb 3 '10 at 11:42

1 Answer 1

Never mind, just looked at the Apache Documentation, needed to add the ErrorDocument directive in the Alias.

share|improve this answer
    
Can you close the question then? –  ℝaphink Feb 3 '10 at 13:11
    
Wouldn't it be better to more fully document the problem and answer as opposed to closing the question? That way someone in the future might google "custom 404 page problem" and find the answer here. –  thepocketwade Feb 3 '10 at 21:02

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.