Received: (qmail 3060 invoked by uid 2012); 26 Feb 1998 00:36:53 -0000 Message-Id: <19980226003653.3059.qmail@hyperreal.org> Date: 26 Feb 1998 00:36:53 -0000 From: Mike Garrison Reply-To: mike.garrison@boeing.com To: apbugs@hyperreal.org Subject: destination .htaccess not read when following ALIAS X-Send-Pr-Version: 3.2 >Number: 1874 >Category: mod_alias >Synopsis: destination .htaccess not read when following ALIAS >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Feb 25 16:40:01 PST 1998 >Last-Modified: Wed Feb 25 23:01:42 PST 1998 >Originator: mike.garrison@boeing.com >Organization: >Release: 1.2.5 >Environment: HPUX-10.20 gcc compiled >Description: Apache is not reading .htaccess files in the destination directories of an alias. eg. conf file includes: ALIAS /CNDAT/ /project/noise/cndat/ Subdirectories of /project/noise/cndat/ have .htaccess files, but Apache does not parse them. If I make a symbolic link from my document root directory to /project/noise/cndat/ and name it /CNDAT/ then Apache parses the .htaccess files. I can't find anything in the documentation which says that ALIASes are supposed to turn off the .htaccess parsing in the subdirectories. >How-To-Repeat: Sorry, you'll have to try it for yourself. My site is behind a firewall. >Fix: >Audit-Trail: From: Dean Gaudet To: Mike Garrison Cc: apbugs@hyperreal.org Subject: Re: mod_alias/1874: destination .htaccess not read when following ALIAS Date: Wed, 25 Feb 1998 16:55:53 -0800 (PST) There's a bit in the documentation for Options FollowSymLinks which describes that apache, when following symlinks, does *not* rewrite the directory/filename. When following Aliases it does rewrite the directory/filename. So you have to ensure that you have a section that covers the *destination* of the Alias describing what you want it to do. i.e. if /abc/def is a symlink to /do/wah and you reference /abc/def/ditty, then apache will use only sections covering /abc/def/ditty for this reference. But if /abc/def is an alias to /do/wah, and you reference /abc/def/ditty then apache will consider matching /abc/def/ditty and /do/wah/ditty symlink != alias Does that make sense? Dean State-Changed-From-To: open-feedback State-Changed-By: dgaudet State-Changed-When: Wed Feb 25 17:00:44 PST 1998 State-Changed-Why: Hoping my description of what's up makes sense. From: Mike Garrison To: Dean Gaudet Cc: apbugs@hyperreal.org Subject: Re: mod_alias/1874: destination .htaccess not read when following ALIAS Date: Wed, 25 Feb 1998 16:58:14 -0800 Dean Gaudet wrote: > > There's a bit in the documentation for Options FollowSymLinks which > describes that apache, when following symlinks, does *not* rewrite the > directory/filename. > > When following Aliases it does rewrite the directory/filename. So you > have to ensure that you have a section that covers the > *destination* of the Alias describing what you want it to do. > > i.e. if /abc/def is a symlink to /do/wah and you reference /abc/def/ditty, > then apache will use only sections covering /abc/def/ditty for > this reference. > > But if /abc/def is an alias to /do/wah, and you reference /abc/def/ditty > then apache will consider matching /abc/def/ditty and > /do/wah/ditty OH! Yes, this makes sense. May I suggest that perhaps it should be mentioned in the documentation of the alias module? Thanks for your help, -Mike From: Dean Gaudet To: Mike Garrison Cc: apbugs@apache.org Subject: Re: mod_alias/1874: destination .htaccess not read when following ALIAS Date: Wed, 25 Feb 1998 17:33:01 -0800 (PST) On Wed, 25 Feb 1998, Mike Garrison wrote: > So does Apache really consider both /abc/def/ditty and > /do/wah/ditty, or does it only consider /do/wah/ditty? Er, yer right. It only considers the destination of the Alias. aliases are dealt with before directory_walk, where directory is dealt with. Dean State-Changed-From-To: feedback-closed State-Changed-By: dgaudet State-Changed-When: Wed Feb 25 23:01:42 PST 1998 State-Changed-Why: Note added to the docs... it'll appear online someday. Dean >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. ]