|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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$"> |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > apache+tomcat access control with the deny and allow not working? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|