I've run into a configuration problem with Apache using mod_jk to connect to tomcat. I have Apache set up running virtual hosts forwarding the requests to Tomcat. On one of the virtual hosts, I want to block an IP address, but can't get it to work. Here's the relevant config:
<VirtualHost *:80>
ServerName ServerAlias beta.domain.com, domain.com, 192.168.1.16
DocumentRoot D:/Apache/Apache2/htdocs/
ErrorLog logs/ LogLevel warn
CustomLog logs/ combined
<Directory />
Order Deny,Allow
Deny from 192.168.1.50
Allow from all
Options FollowSymLinks
AllowOverride none
</Directory>
<Directory "/dbadmin/">
Options FollowSymLinks
AllowOverride AuthConfig
</Directory>
JkMount /* ajp13
JkUnMount /dbadmin* ajp13
</VirtualHost>
I can't get the deny from 192.168.1.50 to work. I suspect it has to do with mod_jk and the JKMount /* directive, but I'm not certain. Do the Apache directives not work, instead letting Tomcat handle it due to the way it's mounted?
<VirtualHost *:80>
ServerName ServerAlias beta.domain.com, domain.com, 192.168.1.16
DocumentRoot D:/Apache/Apache2/htdocs/
ErrorLog logs/ LogLevel warn
CustomLog logs/ combined
<Directory />
Order Deny,Allow
Deny from 192.168.1.50
Allow from all
Options FollowSymLinks
AllowOverride none
</Directory>
<Directory "/dbadmin/">
Options FollowSymLinks
AllowOverride AuthConfig
</Directory>
JkMount /* ajp13
JkUnMount /dbadmin* ajp13
</VirtualHost>
I can't get the deny from 192.168.1.50 to work. I suspect it has to do with mod_jk and the JKMount /* directive, but I'm not certain. Do the Apache directives not work, instead letting Tomcat handle it due to the way it's mounted?