You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Alexei Kosut <ak...@organic.com> on 1997/07/01 00:53:33 UTC

NT HTTPD_ROOT

I've noticed that, on Windows, Apache uses the same default (compiled-in)
document root as Unix, /usr/local/etc/httpd. OS/2 uses "/os2httpd". Since
/usr/local/etc/httpd isn't very likely to exist on a Windows machine,
could we possibly add something like this (untested)? It would make life
easier, probably.

Index: httpd.h
===================================================================
RCS file: /export/home/cvs/apache/src/httpd.h,v
retrieving revision 1.119
diff -c -r1.119 httpd.h
*** httpd.h	1997/06/29 19:19:36	1.119
--- httpd.h	1997/06/30 22:52:43
***************
*** 69,74 ****
--- 69,76 ----
  #ifdef __EMX__
  /* Set default for OS/2 file system */ 
  #define HTTPD_ROOT "/os2httpd"
+ #elif defined(WIN32)
+ #define HTTPD_ROOT "/Apache"
  #else
  #define HTTPD_ROOT "/usr/local/etc/httpd"
  #endif


-- Alexei Kosut <ak...@organic.com>


Re: NT HTTPD_ROOT

Posted by Dean Gaudet <dg...@arctic.org>.
Ugh that reminds me.  Not only do we need to resolve the \ vs. / possible
problems, we have to consider case-insensitive matching in directory_walk.

Something like this:

int ap_fs_is_slash(int c);
int ap_fs_cmp(int c, int d);
int ap_fs_strcmp(const char *, const char *);
int ap_fs_is_root(const char *);	/* /, or C:/ as appropriate */

yadda

I know right now there's that strlwr() call for WIN32/OS2 in parse_uri() 
but... is that really safe?  What about if someone uses #include virtual? 

Dean

On Mon, 30 Jun 1997, Marc Slemko wrote:

> I would recommend keeping it lowercase.  I have a (perhaps paranoid...)
> mistrust of mixed-case names under any sort of Windows.
> 
> On Mon, 30 Jun 1997, Alexei Kosut wrote:
> 
> > I've noticed that, on Windows, Apache uses the same default (compiled-in)
> > document root as Unix, /usr/local/etc/httpd. OS/2 uses "/os2httpd". Since
> > /usr/local/etc/httpd isn't very likely to exist on a Windows machine,
> > could we possibly add something like this (untested)? It would make life
> > easier, probably.
> > 
> > Index: httpd.h
> > ===================================================================
> > RCS file: /export/home/cvs/apache/src/httpd.h,v
> > retrieving revision 1.119
> > diff -c -r1.119 httpd.h
> > *** httpd.h	1997/06/29 19:19:36	1.119
> > --- httpd.h	1997/06/30 22:52:43
> > ***************
> > *** 69,74 ****
> > --- 69,76 ----
> >   #ifdef __EMX__
> >   /* Set default for OS/2 file system */ 
> >   #define HTTPD_ROOT "/os2httpd"
> > + #elif defined(WIN32)
> > + #define HTTPD_ROOT "/Apache"
> >   #else
> >   #define HTTPD_ROOT "/usr/local/etc/httpd"
> >   #endif
> > 
> > 
> > -- Alexei Kosut <ak...@organic.com>
> > 
> 
> 


Re: NT HTTPD_ROOT

Posted by Marc Slemko <ma...@worldgate.com>.
I would recommend keeping it lowercase.  I have a (perhaps paranoid...)
mistrust of mixed-case names under any sort of Windows.

On Mon, 30 Jun 1997, Alexei Kosut wrote:

> I've noticed that, on Windows, Apache uses the same default (compiled-in)
> document root as Unix, /usr/local/etc/httpd. OS/2 uses "/os2httpd". Since
> /usr/local/etc/httpd isn't very likely to exist on a Windows machine,
> could we possibly add something like this (untested)? It would make life
> easier, probably.
> 
> Index: httpd.h
> ===================================================================
> RCS file: /export/home/cvs/apache/src/httpd.h,v
> retrieving revision 1.119
> diff -c -r1.119 httpd.h
> *** httpd.h	1997/06/29 19:19:36	1.119
> --- httpd.h	1997/06/30 22:52:43
> ***************
> *** 69,74 ****
> --- 69,76 ----
>   #ifdef __EMX__
>   /* Set default for OS/2 file system */ 
>   #define HTTPD_ROOT "/os2httpd"
> + #elif defined(WIN32)
> + #define HTTPD_ROOT "/Apache"
>   #else
>   #define HTTPD_ROOT "/usr/local/etc/httpd"
>   #endif
> 
> 
> -- Alexei Kosut <ak...@organic.com>
>