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 have 2 virtual host:





Now I have a .htaccess in website that changes the default 404 Not Found pages.

How Can I set .htaccess in /home/user/website doens't affect the other virtual host too (/home/user/website/sub)?


share|improve this question
up vote 0 down vote accepted

Change it back to the default value in the .htaccess for /home/user/website/sub:

ErrorDocument 404 default
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.