Forum Moderators: phranque

Message Too Old, No Replies

Questions on config file for Apache2 (Win32)

         

chiangww

1:05 pm on May 24, 2005 (gmt 0)

10+ Year Member



Two questions on config file for Apache2 (Win32)

1.
Assuming my document root is
DocumentRoot "C:\X\Y"

Is there any difference between
<Directory C:\X\Y>
and
<Directory />
?

And, if there is directory Z under Y, i.e. C:\X\Y\Z
<Directory C:\X\Y\Z>
and
<Directory /Z>

2.
Is "/" and "\" equivalent in apache config file for win32?
I am confusing about it.

coopster

11:42 am on May 25, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, chiangww.

You should be using the filesystem paths for the OS (Operating System) on which you are running Apache. So if it is *nix, the root starts at "/" and Windows, "C:/" -- you should always use the slash (/) as path separator though, even for Windows.

[httpd.apache.org...]

chiangww

2:18 pm on May 26, 2005 (gmt 0)

10+ Year Member



Thanks, that's quite useful.

A furthur question, if my DocumentRoot is "C:\somewhere", and my apache installation is in E:

Where does <Directory /> imply? C:/ or E:/?

coopster

9:53 pm on May 26, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



That is the root of a *nix filesystem, not Windows. The Directory container accepts a Directory-path that is either the full path to a directory, or a wild-card string.

[httpd.apache.org...]