httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: can apache running on a specified port only allow certain IPs in?
Date Thu, 09 May 2002 16:47:05 GMT
On Thu, 9 May 2002, Joshua Slive wrote:
> On Thu, 9 May 2002, Steve Leach wrote:
>
> > You could use a .htaccess file for the server running on one of the other
> > (or both).
> > In it specify the deny all but allow IP range wanted!
>
> > From: "Stuart Otway" <stuart@moveassist.com>
> > > can apache running on a specified port only allow certain IPs in?
> > >
> > > We have one apache running on port 80 and another apache running on port
> > > 8200 on our server and wanted to only allow specific IP addresses to
> > access
> > > the server running on port 8200.  Does anyone know where i specify this?
> > >
> > > thanks in advance.
>
> While apache access controls can be used, they are overkill in this
> case.  The Listen directive is specifically designed to control the
> addresses and ports that apache listens to:
> http://httpd.apache.org/docs-2.0/mod/mpm_common.html#listen
>

Or, perhaps I misread the question.  You want to control based on client
IP or server IP?  For client IPs, you do indeed need to use apache access
control:
http://httpd.apache.org/docs-2.0/mod/mod_access.html

Joshua.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message