Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 8th, 2002, 11:18 AM
edward edward is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 1 edward User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
apache+tomcat access control with the deny and allow not working?

Hi,

I have an apache-tomcat using mod_dk to communicate. I would like to restrict ip addresses by using the deny in the httpd.conf file. I made changes to the httpd.conf and restarted both tomcat and apache but the ip addresses I denied are still able to view my directory that I restricted. It work on a standalone apache server but not with the apache-tomcat combo. Does anyone know how to restrict access to directories with an apache-tomcat server?

Thanks in advance,

Edward

Reply With Quote
  #2  
Old January 8th, 2002, 02:14 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
First off I am not familiar with mod_jk. Normally if you are trying to protect a dir under your docroot like so:

/www/htdocs/private, you just need:

<Directory "/www/htdocs/private">
Order allow,deny
Allow from all
Deny from 12.34.56.78/32
</Directory>

In mod_jk, however, if it's a virtual path, then it Allow/Deny doesn't work within <Directory>. Say it is:

<VirtualHost *>
DocumentRoot /www/htdocs
ServerName www.domain.com
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
</VirtualHost>

You can put Deny directive within <Location /servlet> or even <FilesMatch "\.jsp$">

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > apache+tomcat access control with the deny and allow not working?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT