Re: [users@httpd] Dynamic authentication rules

2022-02-12 Thread Marc SCHAEFER
On Fri, Feb 11, 2022 at 06:21:50PM -0500, stormy wrote:
> Maybe I'm missing something that you refer to as "tricks" and "presumably"?
> Proof of concept?  Context?

If the dynamic way does not work, I will simply generate about 100
different configurations and merge them in Apache, it's not complicated
to do, just a bit silly IF there is some support dynamicity that
I missed in the documentation.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] Dynamic authentication rules

2022-02-11 Thread Marc SCHAEFER
Hello,

In general, I would handle that kind of authentification tricks in a
perl script, however in this case I would need to protect a script
directly in Apache.

What presumably would work:


   AuthType Basic
   AuthName "Login Required for testing"
   AuthUserFile /shared/testing/htpasswd
   Require valid-user


What I would like to do:


   AuthType Basic
   AuthName "Login Required for $1"
   AuthUserFile /shared/$1/htpasswd
   Require valid-user


Is there a way to do something dynamic like this ?

Thank you for any pointer.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[EMAIL PROTECTED] Doubled headers in Apache 1.3.33 / mod_expire

2006-09-18 Thread Marc SCHAEFER
Hi,

using something like:

Directory /home/twiki/public_html/bin
 Options +ExecCGI FollowSymLinks
 SetHandler cgi-script
 Order Allow,Deny
 Allow from all
 Deny from env=anonymous_spider

 # Disable caching in client!  Else issues when editing the same
 # document without the t=EPOCH hack which doesn't work with
 # static files!
 # Requires mod_expire
 #(see
 #http://httpd.apache.org/docs/1.3/mod/mod_expires.html)
 ExpiresActive On
 ExpiresDefault now
/Directory

I get the following strange output (using w3m's =; Firefox 1.5 reports
no expiry at all):

HTTP/1.1 200 OK
Date: Mon, 18 Sep 2006 22:09:24 GMT
Server: Apache/1.3.33 (Debian GNU/Linux) mod_ssl/2.8.22 OpenSSL/0.9.7e 
mod_perl/
Cache-control: max-age=86400
Expires: Tue, 19 Sep 2006 22:09:29 GMT
Cache-Control: max-age=0
Expires: Mon, 18 Sep 2006 22:09:24 GMT
Last-Modified: Mon, 18 Sep 2006 22:09:29 GMT
Content-length: 15469
Connection: close
Content-Type: text/html; charset=iso-8859-15

Basically, the Cache-control and Expires: headers are doubled.

What should I do to fix this ?

I would really like the client to not cache the data for those URLs.



-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]