• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 309
  • Last Modified:

using apache 2.2x and mod_authz_host to denying access (jboss is serving the site)

Hi my question is about denying access to a range of IPs but I tried testing with "deny from all" but I am still able to access the site.

The current config is that apache is serving a site through jboss. so for example there is no local "/www/mysite/docs/".

I can confirm that modules/mod_authz_host.so is in the modules folder..

So I added the below to the httpd.conf

Alias /Login-Page/ "--not 100% sure what needs to go here as Jboss is serving the war--"
# I did try the full path the login page from within jboss deployment "server/default/tmp/deploy/tmp/...loginpage" just to see

            <Location /Login-Page/>
                SetHandler server-status
                Order Allow,Deny
                Deny from  all
#                Allow from <<IP address Range>>/24
            </Location>
0
hdaz
Asked:
hdaz
  • 2
1 Solution
 
larsrohrCommented:
You may just want:
  <Location />

Is the entire site served by jboss?
0
 
hdazAuthor Commented:
Many thanks I removed:

Alias /Login-Page/ ""
SetHandler server-status

and set Location <Location "/"> :) does what it says on the tin now :)
0
 
hdazAuthor Commented:
yes JBoss is hosing the site.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now