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

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

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


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.