Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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.