delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/01/14:18:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <ADeFaria AT Salira DOT com>
Subject: Re: Using authentication under Apache for Cygwin
Date: Wed, 01 Oct 2003 11:20:06 -0700
Lines: 43
Message-ID: <blf5p7$b5s$1@sea.gmane.org>
References: <blahja$33i$1 AT sea DOT gmane DOT org> <3F78CF0A DOT C7499403 AT wapme-systems DOT de> <3F78EF1B DOT 8090207 AT Salira DOT com> <3F7950E2 DOT 34A66085 AT wapme-systems DOT de> <blct3r$6g8$2 AT sea DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 56 DOT 0309301743370 DOT 26607 AT slinky DOT cs DOT nyu DOT edu> <bld6te$qod$1 AT sea DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 56 DOT 0309302055290 DOT 26607 AT slinky DOT cs DOT nyu DOT edu> <bldtit$okg$1 AT sea DOT gmane DOT org> <3F7A8229 DOT EC5C486A AT dessent DOT net>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-us, en
In-Reply-To: <3F7A8229.EC5C486A@dessent.net>

Brian Dessent wrote:

> Andrew DeFaria wrote:
>
>> Hmmm... As I said it appears to work in the local case. Or are you 
>> saying I should try to break that by playing with permissions? Are 
>> there any examples of "smbntsec" issues?
>>
>> I mean I suspect that if I do something as small as remove read 
>> permission for other on .htaccess then the server will not be able to 
>> read the file thus it would break. But what would that tell me? What 
>> exactly am I looking for?
>>
>> I may play with this as you suggest tomorrow at work. At home I don't 
>> use SMB for my web site - at least not yet.
>
> As a temporary solution, what happens if you mount the SMB share as a 
> drive and then use "/cygdrive/x/path" instead of the UNC style 
> "//machine/share/path"? If that made it work then it might indicate 
> that it's the path handling code somewhere (i.e. Apache not liking // 
> as a valid posix path) versus a permissions problem.

Ah this works! And I get much shorter and consistent (in my mind) 
pathnames in my httpd.conf file! What I did is mount -bsf 
//sonscentral/users/adefaria/www /www. Now my DocumentRoot is simple 
/www, etc!

So, to summarize, it appears that Apache under Cygwin is able to deal 
with web pages when paths are UNC paths of the form 
//<server>/<share>/<path>/<file> however the authentication module does 
not like such paths and seems to fail silently. Personally I believe 
that if the server can accept an UNC path then the authentication module 
should to likewise.

Workarounds include moving your web site to your local drive (not a nice 
option for me because then it won't be backed up, which is why I stored 
it remotely), mount the remote location locally or make a symlink 
pointing to the remote location (I believe that worked too).

Thanks for the help all.
===
BREAKFAST.COM Halted...Cereal Port Not Responding



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019