Restricted access to cgi-directory

Restricted access to cgi-directory

Post by Thomas Klinge » Thu, 06 Apr 2000 04:00:00



Hi!

I have the following structure:

/www/cgi-bin/protected/
/www/webdocs/protected/

What I want to do is that only users accessed to protected are allowed to
run scripts from /www/cgi-bin/protected/.
All others trying to access from outside the scripts to this should be
forced to login.

How can I handle this?

- tom

 
 
 

Restricted access to cgi-directory

Post by Joshua Sliv » Thu, 06 Apr 2000 04:00:00



> Hi!
> I have the following structure:
> /www/cgi-bin/protected/
> /www/webdocs/protected/
> What I want to do is that only users accessed to protected are allowed to
> run scripts from /www/cgi-bin/protected/.
> All others trying to access from outside the scripts to this should be
> forced to login.
> How can I handle this?

If you put them in the same realm (set AuthName the same in Apache)
then the browser will automatically use the same credentials in both
directories.

--
Joshua Slive

http://finance.commerce.ubc.ca/~slive/

 
 
 

Restricted access to cgi-directory

Post by Thomas Klinge » Fri, 07 Apr 2000 04:00:00




...

Quote:> If you put them in the same realm (set AuthName the same in Apache)
> then the browser will automatically use the same credentials in both
> directories.

you mean putting the same .htaccess file into that cgi directory should
solve the problem?

- tom

 
 
 

Restricted access to cgi-directory

Post by Christian Kratze » Fri, 07 Apr 2000 04:00:00


Hi,




> ...
>> If you put them in the same realm (set AuthName the same in Apache)
>> then the browser will automatically use the same credentials in both
>> directories.

> you mean putting the same .htaccess file into that cgi directory should
> solve the problem?

yes but make sure you have enabled .htaccess files in that directory

        <Directory /..../cgi-bin/protected>
                        AllowOverride AuthConfig Limit
        </Directory>

Greetings
Christian

--

Christian Kratzer                               http://www.toplink.net/
Phone:  +49 7032 2701-0
Fax:    +49 7032 2701-19        FreeBSD spoken here!

 
 
 

Restricted access to cgi-directory

Post by Thomas Klinge » Fri, 07 Apr 2000 04:00:00


thanks, this think is working. :)

- tom



> Hi,



Newsbeitrag:

> > ...
> >> If you put them in the same realm (set AuthName the same in Apache)
> >> then the browser will automatically use the same credentials in both
> >> directories.

> > you mean putting the same .htaccess file into that cgi directory should
> > solve the problem?

> yes but make sure you have enabled .htaccess files in that directory

>         <Directory /..../cgi-bin/protected>
> AllowOverride AuthConfig Limit
> </Directory>

> Greetings
> Christian

> --

> Christian Kratzer http://www.toplink.net/
> Phone: +49 7032 2701-0
> Fax: +49 7032 2701-19 FreeBSD spoken here!