Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Subject: Re: Using authentication under Apache for Cygwin Date: Wed, 01 Oct 2003 11:20:06 -0700 Lines: 43 Message-ID: References: <3F78CF0A DOT C7499403 AT wapme-systems DOT de> <3F78EF1B DOT 8090207 AT Salira DOT com> <3F7950E2 DOT 34A66085 AT wapme-systems DOT de> <3F7A8229 DOT EC5C486A AT dessent DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 ///// 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/