Solved

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

Posted on 2012-03-21
3
285 Views
Last Modified: 2012-03-22
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
Comment
Question by:hdaz
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
larsrohr earned 500 total points
ID: 37751144
You may just want:
  <Location />

Is the entire site served by jboss?
0
 
LVL 1

Author Comment

by:hdaz
ID: 37751709
Many thanks I removed:

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

and set Location <Location "/"> :) does what it says on the tin now :)
0
 
LVL 1

Author Closing Comment

by:hdaz
ID: 37751713
yes JBoss is hosing the site.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now