I have Apache fronting Tomcat and using *mod_proxy_ajp* to pass requests to Tomcat using the following in the VirtualHost config:
<Directory "/var/www/mysite">
Options +Indexes MultiViews
AllowOverride All
Order allow,deny
allow from all
DirectoryIndex index.jsp
</Directory>
<Proxy balancer://tomcatserversMysite>
BalancerMember ajp://localhost:8011 route=mysiteA retry=60
</Proxy>
<Location />
Allow From All
ProxyPass balancer://tomcatserversMysite/ stickysession=JSESSIONID nofailover=off
</Location>
I have a .htaccess file that contains only:
deny from all
but it does not seem to get read.
Is it possible to get Apache to check the htaccess file before forwarding to the proxy, and if so can anyone suggest where I am going wrong?