You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Matthew Webster <eu...@freeuk.com> on 2002/12/05 15:20:43 UTC

[users@httpd] Allow from ...

Hi guys,

Anyone know if it's possible to have the 'Allow from' directive 
automatically match the IP or Domain of the server?

Example, if I am running my server on a dynamic IP, but the domain is '
www.mooseserver.homeunix.net', is it possible to have the equivelant of 
'Allow from www.mooseserver.homeunix.net' ?


Cheerio,

Matt.

-- 
Matthew Webster - 07984 164 535
eudoxus@freeuk.com
http://www.eudoxus.freeuk.com/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Allow from ...

Posted by Naku/d'Oh! <na...@lehiphop.com>.
> Anyone know if it's possible to have the 'Allow from' directive 
> automatically match the IP or Domain of the server?
> 
> Example, if I am running my server on a dynamic IP, but the domain is '
> www.mooseserver.homeunix.net', is it possible to have the equivelant of 
> 'Allow from www.mooseserver.homeunix.net' ?

Hi,

Maybe what you're looking for is

order allow,deny

deny from all
allow from 127.0.0.1

This restricts the access to localhost

Naku

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org