Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 32B82D6F1 for ; Fri, 28 Sep 2012 19:42:57 +0000 (UTC) Received: (qmail 86291 invoked by uid 500); 28 Sep 2012 19:42:54 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 86215 invoked by uid 500); 28 Sep 2012 19:42:54 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 86207 invoked by uid 99); 28 Sep 2012 19:42:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2012 19:42:53 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [216.13.71.212] (HELO exchange2k3.ptp.local) (216.13.71.212) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2012 19:42:46 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CD9DB1.6103DDD3" Date: Fri, 28 Sep 2012 15:42:20 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Apache on Windows NFS Mount Thread-Index: Ac2dsVaRFyQyEaWURj6kguCgDBr00Q== From: "Brad Baker" To: Subject: [users@httpd] Apache on Windows NFS Mount ------_=_NextPart_001_01CD9DB1.6103DDD3 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I'm trying to get apache on windows 2008 R2 to work with an NFS mount as the document root. I have done the following: =20 - Setup Services for Network File System - Ran the following commands (again on windows): mount \\10.99.108.90\test_htdocs X: - I can open my computer and browse the X: drive, create files. - I open up httpd.conf and change my configuration as such: DocumentRoot "X:/new" - I fire up the apache service and it immediately fails and I have the following errors in the event log: The Apache service named reported the following error: >>> AH00526: Syntax error on line 243 of C:/Apache/conf/httpd.conf: . =20 The Apache service named reported the following error: >>> DocumentRoot must be a directory . =20 I'm running Apache/2.4.3 (Win64) if that matters. I'm running apache as an active directory account (ourdomain\apache) and the same account with the same username and password exists on the destination NFS server) =20 I've tried changing the directory to X:/new, X:/new/, X:\new, X:\new\ none of the combinations seems to work. =20 I have the same configuration working on a linux box so I don't think the issue is with the NFS server but rather something to do with the windows/apache box. Before you suggest that I scrap NFS and use SMB - I've already tried that. SMB works but performance is dreadful (20+ second load times). =20 I've also configured EnableMMAP off and EnableSendfile off which I believe is suggested for network file systems. That doesn't help (either with SMB or NFS). Can anyone help me understand why this is failing? =20 Thanks Brad =20 ------_=_NextPart_001_01CD9DB1.6103DDD3 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I’m trying to get apache on windows 2008 R2 = to work with an NFS mount as the document root. I have done the = following:

 

- Setup Services for Network File = System

- Ran the following = commands (again on windows): mount \\10.99.108.90\test_htdocs X:

- I can open my computer and = browse the X: drive, create files.

- I open up httpd.conf and change my configuration = as such:

        = DocumentRoot "X:/new"

        = <Directory "X:/new">

- I fire up the apache service and it immediately = fails and I have the following errors in the event log:

        The = Apache service named  reported the following = error:

        = >>> AH00526: Syntax error on line 243 of = C:/Apache/conf/httpd.conf:     .

        =

        The = Apache service named  reported the following = error:

        = >>> DocumentRoot must be a directory     = .

 

I’m running Apache/2.4.3 (Win64) if that = matters. I’m running apache as an active directory account = (ourdomain\apache) and the same account with the same username and = password exists on the destination NFS server)

 

I’ve tried changing the directory to X:/new, = X:/new/, X:\new, X:\new\ none of the combinations seems to = work.

 

I have the same configuration working on a linux = box so I don’t think the issue is with the NFS server but rather = something to do with the windows/apache box.  Before you suggest = that I scrap NFS and use SMB – I’ve already tried that. SMB = works but performance is dreadful (20+ second load = times).

 

I’ve also configured EnableMMAP off and = EnableSendfile off which I believe is suggested for network file = systems. That doesn’t help (either with SMB or NFS). Can anyone = help me understand why this is failing?

 

Thanks

Brad

 

------_=_NextPart_001_01CD9DB1.6103DDD3--