Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: (qmail 5502 invoked from network); 5 May 2009 22:39:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 May 2009 22:39:10 -0000 Received: (qmail 26269 invoked by uid 500); 5 May 2009 22:39:09 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 26192 invoked by uid 500); 5 May 2009 22:39:09 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 26179 invoked by uid 99); 5 May 2009 22:39:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 May 2009 22:39:09 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mmwaldman@nyc.rr.com designates 71.74.56.125 as permitted sender) Received: from [71.74.56.125] (HELO hrndva-omtalb.mail.rr.com) (71.74.56.125) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 May 2009 22:39:00 +0000 Received: from DeJaVu ([67.247.0.125]) by hrndva-omta04.mail.rr.com with ESMTP id <20090505223838932.PCM13994@hrndva-omta04.mail.rr.com> for ; Tue, 5 May 2009 22:38:38 +0000 From: "Michele Waldman" To: Subject: RE: Using httpd.conf and htaccess Date: Tue, 5 May 2009 18:38:38 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 In-Reply-To: <20090505211418282.WUKW13994@hrndva-omta04.mail.rr.com> Thread-Index: AcnNxnM8zFdddi0RS+ayWtOAg7HMlAAC7k+A Message-Id: <20090505223838932.PCM13994@hrndva-omta04.mail.rr.com> X-Virus-Checked: Checked by ClamAV on apache.org Looks like I need to use: AllowOverride AuthConfig Is this right? Where do I put this? Margaret Michele Waldman Sovereign Sites L.L.C. Website Development 646-861-3375 Rule your domain ... > -----Original Message----- > From: Michele Waldman [mailto:mmwaldman@nyc.rr.com] > Sent: Tuesday, May 05, 2009 5:14 PM > To: modules-dev@httpd.apache.org > Subject: Using httpd.conf and htaccess > > I want to get some configuration variables from httpd.conf and .htaccess > for > mod_auth_digest: > > > > static const command_rec digest_cmds[] = > > { > > AP_INIT_TAKE1("AuthName", set_realm, NULL, OR_AUTHCFG, > > "The authentication realm (e.g. \"Members Only\")"), > > AP_INIT_ITERATE("AuthDigestProvider", add_authn_provider, NULL, > OR_AUTHCFG, > > "specify the auth providers for a directory or > location"), > > AP_INIT_ITERATE("AuthDigestQop", set_qop, NULL, OR_AUTHCFG, > > "A list of quality-of-protection options"), > > AP_INIT_TAKE1("AuthDigestNonceLifetime", set_nonce_lifetime, NULL, > OR_AUTHCFG, > > "Maximum lifetime of the server nonce (seconds)"), > > AP_INIT_TAKE1("AuthDigestNonceFormat", set_nonce_format, NULL, > OR_AUTHCFG, > > "The format to use when generating the server nonce"), > > AP_INIT_FLAG("AuthDigestNcCheck", set_nc_check, NULL, OR_AUTHCFG, > > "Whether or not to check the nonce-count sent by the client"), > > AP_INIT_TAKE1("AuthDigestAlgorithm", set_algorithm, NULL, OR_AUTHCFG, > > "The algorithm used for the hash calculation"), > > AP_INIT_ITERATE("AuthDigestDomain", set_uri_list, NULL, OR_AUTHCFG, > > "A list of URI's which belong to the same protection space as the > current URI"), > > AP_INIT_TAKE1("AuthDigestShmemSize", set_shmem_size, NULL, RSRC_CONF, > > "The amount of shared memory to allocate for keeping track of > clients"), > > AP_INIT_TAKE1("AuthMySQLUser", ap_set_string_slot, > > (void *) APR_OFFSETOF(digest_config_rec, dbc_username), > > OR_AUTHCFG, "DB Username"), > > {NULL} > > }; > > > > In httpd.conf > > > > > > AuthMySqlUser itweenz0 > > > > > > > > In .htaccess: > > > > AuthType Digest > > AuthName "account" > > AuthUserFile /path/.htpasswd > > Require valid-user > > > > > > When I don't use AuthMySQLUser in httpd.conf, the AuthName from .htaccess > is > defined fine. But, when I specify the AuthMySQLUser in httpd.conf, the > AuthMySqlUser is specified from httpd.conf, but the AuthName is not set > from > ,htaccess. > > > > How do I get the configuration variables to come from httpd.conf and > .htaccess at the same time? > > > > Thanks, > > > > Michele > >