Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have configured apache authentication for one of my domain. I want that apache should not prompt for password for local ips and for * Currently with the following configuration it is working fine for only

    Order deny,allow
    Deny from all
    AllowOverride All
    AuthType Basic
    AuthName "Webyog Gateway Authentication"
    AuthUserFile /etc/httpd/httpdpasswd
    Require user webyog
    Allow from
    Satisfy Any

How can I allow wild card domains like * in the above configuration ?

Warm Regards


share|improve this question

3 Answers 3

up vote 1 down vote accepted

This configuration already allows *, but as the apache docs say:

This configuration will cause Apache to perform a double reverse DNS lookup on the client IP address, regardless of the setting of the HostnameLookups directive. It will do a reverse DNS lookup on the IP address to find the associated hostname, and then do a forward lookup on the hostname to assure that it matches the original IP address. Only if the forward and reverse DNS are consistent and the hostname matches will access be allowed.

I guess, your reverse DNS Lookup for the subdomains of is not working as expected.

share|improve this answer
Yes, you are correct. The reverse DNS will not work because the sub domains are hosted in a server whose IP is shared between the VirtualHost. Is there any workaround to skip reverse DNS lookup ? –  Supratik Dec 6 '10 at 9:02

Have a look at this link. This configuration should work! See the example below:

A (partial) domain-name

    Allow from
    Allow from .net

    Hosts whose names match, or end in, this string are allowed access. Only complete components are matched, so the above example will match but it will not match 
share|improve this answer

You should write 2 Allow directives:

Allow from 
Allow from

But, as heiko wrote, to use a domanin name is not a good practice.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.