up vote 2 down vote favorite
share [g+] share [fb]

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.

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

1 Answer

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

link|improve this answer
Can you close the question then? – Raphink 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
feedback

Your Answer

 
or
required, but never shown

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