Apache2 .htaccess and virtual hosts
I have been configuring my apache server and ran across a few issues, the main httpd.conf is configured to allow .htaccess and AllowOverride is set to Limit and Indexes which is what i need.
The document root which is the same as the first virtual host my .htaccess access works perfectly, Allows in when supposed to and shows the forbidden page when you cant get in
I created a second virtualhost with a different documentroot and placed a .htaccess file and it stopped didnt work, I then went ahead and placed the following in the virtual host config
Options Indexes FollowSymLinks
AllowOverride Limit Indexes
and it started to work but on failed requests instead of showing the forbidden page it takes me to the default nohtml page for CentOS
my question is really.
1. the config in the httpd.conf does this only apply to the documentroot it specifies?
2. Why does it go to the nohtml page rather than show you are forbidden from accessing this page.
3. Where is the document file which shows the forbidden page !?