Received: (qmail 13897 invoked by uid 2012); 25 Feb 1998 18:00:38 -0000 Message-Id: <19980225180038.13896.qmail@hyperreal.org> Date: 25 Feb 1998 18:00:38 -0000 From: Tuan DANG Reply-To: dangt@essilor.fr To: apbugs@hyperreal.org Subject: .htaccess file does not work with a mounted nfs disk X-Send-Pr-Version: 3.2 >Number: 1870 >Category: mod_access >Synopsis: .htaccess file does not work with a mounted nfs disk >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Feb 25 10:10:01 PST 1998 >Last-Modified: Fri Feb 27 08:10:00 PST 1998 >Originator: dangt@essilor.fr >Organization: >Release: 1.2.5 >Environment: HP-UX 10.20 gcc >Description: [Wed Feb 25 18:43:05 1998] access to /serveur_td/disk4G/users/www/.htaccess failed for freos009, reason: Invalid command ~ .htaccess file does not work with a mounted nfs disk >How-To-Repeat: >Fix: >Audit-Trail: State-Changed-From-To: open-analyzed State-Changed-By: marc State-Changed-When: Wed Feb 25 10:18:59 PST 1998 State-Changed-Why: I'm afraid you have to give more information than that. What are the contents of the htaccess files? Does it work locally? Can you read it if you su to the user that Apache runs as on the server? From: Marc Slemko To: Apache bugs database Cc: Subject: RE: mod_access/1870: .htaccess file does not work with a mounted nfs disk (fwd) Date: Thu, 26 Feb 1998 13:16:50 -0700 (MST) ---------- Forwarded message ---------- Date: Thu, 26 Feb 1998 17:16:49 +0100 From: DANG Tuan To: "'marc@hyperreal.org'" Subject: RE: mod_access/1870: .htaccess file does not work with a mounted n= fs disk It works locally but only under Document root directory Here is the content of ".htaccess" file : AuthUserFile /home/dangt/.htpasswd AuthGroupFile /dev/null AuthName Tuan DANG AuthType Basic require valid-user =20 >> Error log of Apache server : [Thu Feb 26 17:21:54 1998] access to /home/dangt/.htaccess failed for fred2640, reason: Invalid command ~ <<<<<<<<<<< You may notice this strange message. Thanks >-----Message d'origine----- >De:=09marc@hyperreal.org [SMTP:marc@hyperreal.org] >Date:=09mercredi 25 f=E9vrier 1998 19:19 >=C0:=09DANG Tuan; apache-bugdb@apache.org; marc@apache.org >Objet:=09Re: mod_access/1870: .htaccess file does not work with a mounted = nfs >disk > >Synopsis: .htaccess file does not work with a mounted nfs disk > >State-Changed-From-To: open-analyzed >State-Changed-By: marc >State-Changed-When: Wed Feb 25 10:18:59 PST 1998 >State-Changed-Why: >I'm afraid you have to give more information than that. >What are the contents of the htaccess files? Does it work >locally? Can you read it if you su to the user that Apache >runs as on the server? > From: Marc Slemko To: DANG Tuan Cc: Apache bugs database Subject: RE: mod_access/1870: .htaccess file does not work with a mounted nfs disk Date: Fri, 27 Feb 1998 07:51:44 -0700 (MST) On Fri, 27 Feb 1998, DANG Tuan wrote: > I can repeat the same problem with apache 1.3b5, here is the > configuration files : Erm.... You say the htaccess file contains: AuthUserFile /usr/local/etc/httpd/passwd/.htpasswd AuthGroupFile /dev/null AuthName Tuan_DANG AuthType Basic require valid-user ~ Well, it seems pretty obvious that ~ is an invalid command and that is what the server is reporting... State-Changed-From-To: analyzed-closed State-Changed-By: marc State-Changed-When: Fri Feb 27 07:59:17 PST 1998 State-Changed-Why: User had extra character in file. From: Marc Slemko To: DANG Tuan Cc: Apache bugs database Subject: RE: mod_access/1870: .htaccess file does not work with a mounted nfs disk Date: Fri, 27 Feb 1998 08:56:36 -0700 (MST) On Fri, 27 Feb 1998, DANG Tuan wrote: > Ouch! >=20 > Thanks a lot, it works now... > Is there a way to bypasse eventual invalid character in htaccess ? No. If it is invalid, it will not be allowed. Ignoring invalid things is bad. >=20 > >-----Message d'origine----- > >De:=09Marc Slemko [SMTP:marcs@znep.com] > >Date:=09vendredi 27 f=E9vrier 1998 15:52 > >=C0:=09DANG Tuan > >Cc:=09Apache bugs database > >Objet:=09RE: mod_access/1870: .htaccess file does not work with a mounte= d nfs > >disk > > > >On Fri, 27 Feb 1998, DANG Tuan wrote: > > > >> I can repeat the same problem with apache 1.3b5, here is the > >> configuration files : > > > >Erm.... > > > >You say the htaccess file contains: > > > >=09AuthUserFile /usr/local/etc/httpd/passwd/.htpasswd > >=09AuthGroupFile /dev/null > >=09AuthName Tuan_DANG > >=09AuthType Basic > > > >=09 > >=09require valid-user > >=09 > >=09~ =20 > > > >Well, it seems pretty obvious that ~ is an invalid command and that > >is what the server is reporting... > > >=20 >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]