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

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

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.  

> 
> Thanks,
> Drew
> 
> ==============================================================
> ==============
> Drew Shelton                            drew.shelton@xxxxxxxxxxxx
> VMS Systems Administrator               office: 512-356-7575
> Sematech                                fax:    512-356-7600
> 2706 Montopolis Drive
> Austin, TX 78741-6499                I speak for myself only, 
> not Sematech.
>     "There are two major products that come out of Berkeley: 
> LSD and UNIX.
>     We don't believe this to be a coincidence." - Jeremy S. Anderson
> ==============================================================
> ==============
> 
> 
> ---------------------------------------------------------------------
> 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
> 
> 
Diese E-mail ist eine private und persönliche Kommunikation. Sie hat keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This e-mail is of a private and personal nature. It is not related to the exchange or business activities of the SWX Group. Le présent e-mail est un message privé et personnel, sans rapport avec l'activité boursière du Groupe SWX.
 
 
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.

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