You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Leander Jedamus <je...@Fh-Worms.DE> on 2002/10/24 15:50:06 UTC

[users@httpd] Auth in Intranet and Internet

Hi!

I want to have a directory /test, which is reachable from intranet or
from outside per password. This works well:
<Directory "/usr/local/apache_2.0.43/htdocs/test">
    AuthUserFile /usr/local/apache_2.0.43/etc/root.passwd
    AuthGroupFile /usr/local/apache_2.0.43/etc/root.group
    AuthName Passwort
    AuthType Basic

    satisfy any
    order deny,allow
    deny from all
    allow from 143.93.191.45
    require valid-user
</Directory>

Now I want two subdirectories (/test/info and /test/tour).
Both of them should ask their group "info" or "tour" everytime.
This does not work for the Intranet:
<Directory "/usr/local/apache_2.0.43/htdocs/test/tour">
    AuthUserFile /usr/local/apache_2.0.43/etc/root.passwd
    AuthGroupFile /usr/local/apache_2.0.43/etc/root.group
    AuthName Passwort
    AuthType Basic

    require group tour
</Directory>

<Directory "/usr/local/apache_2.0.43/htdocs/test/info">
    AuthUserFile /usr/local/apache_2.0.43/etc/root.passwd
    AuthGroupFile /usr/local/apache_2.0.43/etc/root.group
    AuthName Passwort
    AuthType Basic

    require group info
</Directory>

Now, both directories are "open".

What am I doing wrong?

Thanks in advance
Leander Jedamus



---------------------------------------------------------------------
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