Solved

How can we restrict other ip address perticular domain in production server

Posted on 2011-02-22
2
232 Views
Last Modified: 2012-05-11
Hi
We are having Linux web server running jboss and,i want to restrict other public ip's other than our static ip's so please guide me in this issue  to provide good security to my server.
0
Comment
Question by:srujanmiryala
[X]
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
2 Comments
 
LVL 11

Accepted Solution

by:
Pieter Jordaan earned 125 total points
ID: 34958492
Hi

You can edit the apache config file and add a range of IP addresses that will have access.

The "Allow from" statement should be inside the "<Directory" tag.

You can add an entire /24 IP range, or just a single address, by separating them with a space.

    <Directory "/path/to/your/webpage">
        Options none
        AllowOverride Limit
        Order Deny,Allow
        Deny from all
        Allow from 10.10.10.0/24 10.11.12.16 10.16.21.0/16
    </Directory>

I hope that helps.

BitFreeze.
0
 

Author Comment

by:srujanmiryala
ID: 34958519
can u please explain how to do this in jboss server.


<Directory "/path/to/your/webpage">
        Options none
        AllowOverride Limit
        Order Deny,Allow
       Deny from 10.10.10.0/24 10.11.12.16 10.16.21.0/16
        Allow from all
    </Directory>

  this mean it will restric the particular ip's range  rite?
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…

710 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