That seems like an odd way of doing it. Seems more like an apache issue then anything as this can be achieved with apache's included modules (like mod_auth and mod_access).
Something like <VirtualHost 192.168.1.1:80> ServerName example.com DocumentRoot /great/example/here <Directory /great/example/here> Order Allow, Deny Deny from All Allow from IP (like 192.168.1 or 192.168 etc) AuthType Basic AuthName "Example" AuthUserFile /path/to/your/htpasswd/file Satisfy Any </Directory> </VirtualHost> You could easily just change the port to 443 and add the necessary SSL info to have this work on a SSL'd host. On 11/22/06, Luis Carlos Peinado Bravo <[EMAIL PROTECTED]> wrote:
Hi, I'm trying to do the following. When users from the Intranet access to the website nothing will be required but if the users come from the Internet a client certificate will be required to use it with the basic authentication using the FakeBasicAuth option. I did what the link http://www.modssl.org/docs/2.8/ssl_howto.html#ToC10 says but if I come from the Intranet a client certificate is required (if cancel it I get access to the webste) and if I come from the Internet a login box pops up. Could you help me?