RE: [users@httpd] Automatic script execution whenever a directory is referenced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Boyle Owen [mailto:Owen.Boyle@xxxxxxx]
> Sent: Tuesday, May 24, 2005 4:26 AM
> To: users@xxxxxxxxxxxxxxxx
> Subject: RE: [users@httpd] Automatic script execution whenever a
> directory is referenced
> 
> 
> > -----Original Message-----
> > From: Drew.Shelton@xxxxxxxxxxxx [mailto:Drew.Shelton@xxxxxxxxxxxx]
> > Sent: Montag, 23. Mai 2005 22:35
> > To: users@xxxxxxxxxxxxxxxx
> > Subject: [users@httpd] Automatic script execution whenever 
> a directory
> > is referenced
> > 
> > 
> > I want to setup password protection on all files served in a 
> > directory.  I want the authentication to expire without 
> > relying on the user to kill the browser session, so I'm 
> > pretty sure I must do that from the server side rather than 
> > Apache basic authentication because of the browser cache.  I 
> > don't know what the "best" way is to do that, but my idea is 
> > to configure my directory to have a CGI script run 
> > automatically before any file within that directory is 
> > served.  Is this possible?
> 
> Not using basic authentication.
> 
> There is no concept of expiration in basic_auth. The browser 
> sends the credentials with every subsequent request in the 
> same realm. The only way to "expire" the browser is to shut it down. 

I know that I can't use basic authentication for expiring passwords.
I attempted to say that in my original message.

> On the server side, you only ever get a request with or 
> without an Authorization header. If it's with a valid auth 
> header, you serve the content.
> 
> The only way to expire logins is with session management (ie, 
> cookies).

But is there a way to trigger a CGI script with every reference to a
particular directory?

Thanks,
Drew


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux