Solved

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

Posted on 2011-02-22
2
229 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
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

770 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