Solved

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

Posted on 2012-03-21
3
283 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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

758 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

16 Experts available now in Live!

Get 1:1 Help Now