httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject <Directory /> One last time prior to 1.3.13
Date Wed, 06 Sep 2000 16:14:11 GMT
Folks,

  I'm raising this issue again from a different perspective.

  As most win32 developers know, <directory /> does nothing to the 
specs <directory e:/bleh>, or Alias /bleh d:/bleh...

  This can be overridden on WinNT if every path is prefixed //./c:/,
and interestingly, <Directory //> provides a nice way to override
any defaults of network accessable paths.

  The question -was- how to fix this... do we...

1. Override '/' on Win32 such that e:/bleh walks /, then e:/, and
   finally e:/bleh?  There are already patches to that effect, and most
   have agreed that it is an ugly to parse the world more like unix.

2. Hack <Directory /> to fill in defaults into http_core.c's defaults
   (simpler 'no permission' hack proposed by Tim Costello).

3. Remove <Directory /> from httpd.conf-dist-win and replace with at
   least <Directory %%SERVER_DRIVE%%/> and a comment to add more drive
   letter sections as appropriate.
   (Also suggested by Tim)

  Or...

  Do we seriously look at this '/' rooting issue from the non-filesystem
perspective?  I know we have quite a few non-fs'ers out there that have
designs on 2.1 (or some soon-future Apache.)  If there is no filesystem,
is there a '/' root?  Can we kill both birds (conceptually) with one
stone, or should we invent something other than <Directory /> for the
default cross-systems permissions (or have a <DefaultDirectory> block
for the fs root, a <DefaultSQL> for the SQL-pages root, etc?)

  I bring it up since non-fs based servers may confront this very issue,
and I'd like to see 2.0 beta 1 roll with proper handling (and perhaps,
backport the solution to 1.3.13.) 

  Food for thought... I'll apply patch 1 as a quick-fix to 1.3.13/Win 
if we have consensus.

Bill



> -----Original Message-----
> From: Tim Costello [mailto:timcostello@ozemail.com.au]
> Sent: Wednesday, April 19, 2000 12:29 PM
> 
> diff -r -N -u 
> /srclib/repos/apache/2.0/src/src/main/http_core.c src/main/http_core.c
> --- /srclib/repos/apache/2.0/src/src/main/http_core.c	Mon Apr 
> 17 09:12:17 2000
> +++ src/main/http_core.c	Mon Apr 17 10:09:50 2000
> @@ -127,9 +127,9 @@
>      conf->d_is_fnmatch = conf->d ? (ap_is_fnmatch(conf->d) != 0) : 0;
>      conf->d_components = conf->d ? ap_count_dirs(conf->d) : 0;
>  
> -    conf->opts = dir ? OPT_UNSET : OPT_UNSET|OPT_ALL;
> +    conf->opts = dir ? OPT_UNSET : OPT_NONE;
>      conf->opts_add = conf->opts_remove = OPT_NONE;
> -    conf->override = dir ? OR_UNSET : OR_UNSET|OR_ALL;
> +    conf->override = dir ? OR_UNSET : OR_NONE;
>  
>      conf->content_md5 = 2;

Mime
View raw message