httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krist van Besien <>
Subject Re: [users@httpd] htaccess file and computer names
Date Thu, 21 Feb 2013 14:40:11 GMT
On Tue, Feb 19, 2013 at 7:49 PM, Marc Fromm <> wrote:
> I am using some htaccess files to control access to a few web pages.
> The htaccess file works if I use the ip address of the computer to grant
> access, but not its name.

If you want apache to be able to grant access based on computer name
you must be sure that revers DNS lookups for those machines works.
>From the point of view of the apache webserver all requests come from
an ip address. If you use a hostname in an access directive apache
will perform a reverse lookup on that ip address, and compares the
name it gets with the directive.
So what you first need to check is if reverse dns works.

Be warned however that having apache check dns with every request will
incur a performance penalty. However if convenience is more important
than performance this can be something that one can live with...


Bern, Switzerland

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message