Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mod_jk and Apache Directory directives

Status
Not open for further replies.

sedell

Programmer
Apr 5, 2005
5
US
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?
 
I think you should post this in the Apache HTTPD forum rather than Tomcat forum ...

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top