httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Drew.Shel...@sematech.org
Subject RE: [users@httpd] Automatic script execution whenever a directory is referenced
Date Tue, 24 May 2005 13:01:34 GMT
> -----Original Message-----
> From: Boyle Owen [mailto:Owen.Boyle@swx.com]
> Sent: Tuesday, May 24, 2005 4:26 AM
> To: users@httpd.apache.org
> Subject: RE: [users@httpd] Automatic script execution whenever a
> directory is referenced
> 
> 
> > -----Original Message-----
> > From: Drew.Shelton@sematech.org [mailto:Drew.Shelton@sematech.org]
> > Sent: Montag, 23. Mai 2005 22:35
> > To: users@httpd.apache.org
> > 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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message