Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

828 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