How to limit server to specific IP addresses with mod_authz_host?
Posted
by
BeeDog
on Server Fault
See other posts from Server Fault
or by BeeDog
Published on 2010-12-23T13:01:44Z
Indexed on
2010/12/23
13:55 UTC
Read the original article
Hit count: 210
Hi!
I am very new to this area, so please bear with me. :)
Right now I am running an Apache HTTP server on my setup, a very basic configuration. The website hosted on it is accessible from anywhere, and I want to limit the access to a specific IP address range.
I've looked into this and I found that one Apache module called mod_authz_host handles this.
http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html
The problem is, I haven't managed to find documentation that explains well how to actually do the stuff. How do I actually make sure only a certain range of IP addresses can access my site/server?
The machine is running Ubuntu Server 10.10, the web files are stored in /var/www/, the apache2 daemon has its stuff stored in /etc/apache2/ and /usr/lib/apache2/modules/*. Thanks in advance, and sorry if this is a stupid question!
© Server Fault or respective owner