Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 238
  • Last Modified:

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

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
srujanmiryala
Asked:
srujanmiryala
1 Solution
 
Pieter JordaanSenior Systems Administrator - Web hosting and Network Security.Commented:
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
 
srujanmiryalaAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now