Re: [users@httpd] URG:DocumentRoot relate query on WIndows

2017-03-10 Thread William A Rowe Jr
What you are seeing is correct behavior, DocumentRoot is an absolute
path, whether you have specified this or not. If httpd sees an incomplete
path, it is going to work out an absolute path from the ServerRoot If it
appends the default and cannot establish a full path, you will receive
the indicated error.

It seems your ServerRoot/config is equally problematic, if httpd.conf
exists in the root of a system volume. There should be nothing that
is significant about the volume C:, but there may be something very
significant about the permissions of that volume, etc.

On Fri, Mar 10, 2017 at 7:25 AM, Ishan Thakur
 wrote:
> Hi All,
>
> We are using http-2.2.31 for our application on Windows.
> We are running our application as Local Service on Windows.
> The problem description is as follows:
> “We are setting the documentRoot as “web”(no complete absolute path). This
> works fine for all the paths.
> The paths can be direct drive(D:\). But it fails only for C drive(C:\). The
> same works fine for all other paths(D:\, C:\Program Files…etc)
>
> For C drive, we are getting following error:
>
> Syntax error on line 129 of C:/httpd.conf:
> DocumentRoot must be a directory
> “
> Is there any restriction for C drive on Windows for Apache httpd-2.2.31?
>
> Regards,
> Ishan

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] URG:DocumentRoot relate query on WIndows

2017-03-10 Thread Yehuda Katz
You can set the DocumentRoot to "C:/" (note the forward slash instead of
the backslash).
You can technically set it to just "/" also if you want the drive where
HTTPD is located.

When running HTTPD on Windows, it is good practice to use forward slashes
even though backslashes work in some places.
This is supposed to be inserted as a comment in the Windows httpd.conf (by
httpd/branches/2.4.x/build/installwinconf.awk):


> # NOTE: Where filenames are specified, you must use forward slashes
> # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
> # If a drive letter is omitted, the drive on which httpd.exe is located
> # will be used by default.  It is recommended that you always supply
> # an explicit drive letter in absolute paths to avoid confusion.


- Y

On Fri, Mar 10, 2017 at 8:37 AM, Eric Covener  wrote:

> On Fri, Mar 10, 2017 at 8:25 AM, Ishan Thakur
>  wrote:
> > “We are setting the documentRoot as “web”(no complete absolute path).
> This
> > works fine for all the paths.
> > The paths can be direct drive(D:\). But it fails only for C drive(C:\).
> The
> > same works fine for all other paths(D:\, C:\Program Files…etc)
> >
> > For C drive, we are getting following error:
> >
> > Syntax error on line 129 of C:/httpd.conf:
> > DocumentRoot must be a directory
> > “
> > Is there any restriction for C drive on Windows for Apache httpd-2.2.31?
>
>
> You'll have to provide some more detail. How does "web" work for
> different drive letters?  Do you specify different server roots in
> different configuration files?
>
> There's nothing special about the C drive when you specify a DocumentRoot.
>
> --
> Eric Covener
> cove...@gmail.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] URG:DocumentRoot relate query on WIndows

2017-03-10 Thread Eric Covener
On Fri, Mar 10, 2017 at 8:25 AM, Ishan Thakur
 wrote:
> “We are setting the documentRoot as “web”(no complete absolute path). This
> works fine for all the paths.
> The paths can be direct drive(D:\). But it fails only for C drive(C:\). The
> same works fine for all other paths(D:\, C:\Program Files…etc)
>
> For C drive, we are getting following error:
>
> Syntax error on line 129 of C:/httpd.conf:
> DocumentRoot must be a directory
> “
> Is there any restriction for C drive on Windows for Apache httpd-2.2.31?


You'll have to provide some more detail. How does "web" work for
different drive letters?  Do you specify different server roots in
different configuration files?

There's nothing special about the C drive when you specify a DocumentRoot.

-- 
Eric Covener
cove...@gmail.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] URG:DocumentRoot relate query on WIndows

2017-03-10 Thread Ishan Thakur
Hi All, We areusing http-2.2.31 for our application on Windows.We arerunning 
our application as Local Service on Windows.
The problem description is as follows:
“We are setting the documentRoot as “web”(no complete absolute path). Thisworks 
fine for all the paths.
The paths can be direct drive(D:\). But it fails only for C drive(C:\).The same 
works fine for all other paths(D:\, C:\Program Files…etc)

For C drive, we are getting following error:

Syntax error on line 129 of C:/httpd.conf:DocumentRootmust be a directory
“
Is there anyrestriction for C drive on Windows for Apache httpd-2.2.31?

Regards,Ishan