perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@pobox.com>
Subject Re: How to determine AuthUserFile from .htaccess
Date Wed, 01 Mar 2000 07:53:44 GMT
On Thu, 24 Feb 2000, Kosta Kouloufakos wrote:

> Hi there,
> 
> Is there an API to determine what the AuthUserFile is,
> from the .htaccess file? I want to customize an NIS
> authorization module (mod_auth_yp.c).

not from Perl, but with this patch you can use $r->server->access_name
it only returns the basename of the file, not the full path.  Apache
starts at / and traverses down every subdirectory looking for this file.
better to disable .htaccess

--- Server.xs	1999/08/20 08:34:43	1.6
+++ Server.xs	2000/03/01 07:53:45
@@ -191,3 +191,16 @@
     ST(0) = array_header2avrv(server->names);
 #endif
 
+char *
+access_name(server)
+    Apache::Server	server
+
+    PREINIT:
+    core_server_config *conf = NULL;
+
+    CODE:
+    conf = ap_get_module_config(server->module_config, &core_module);
+    RETVAL = conf->access_name;
+
+    OUTPUT:
+    RETVAL


Mime
View raw message