delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/30/20:25:29

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: Tue, 30 Sep 2003 17:27:08 -0700
Lines: 60
Message-ID: <bld6te$qod$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>
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: <Pine.GSO.4.56.0309301743370.26607@slinky.cs.nyu.edu>

Igor Pechtchanski wrote:

> Andrew,
>
> Could this be a text vs. binary issue? I'm grasping at straws here... 
> It's good that you've moved everything to the local disk - it helps to 
> eliminate as many variables as possible. Did you get an authenticated 
> access webpage (.html, as opposed to a CGI script) working? Can you 
> initially create the user file in the directory where you're trying to 
> set up authentication (for testing purposes)? Can you show the output 
> of "ls -la" in that directory?

It seems to be an issue of using a UNC path. The following works fine:

<VirtualHost adefaria>
  ServerName adefaria
  ServerAdmin ADeFaria AT Salira DOT com
  DocumentRoot "/var/www/htdocs"
#  DocumentRoot "//sonscentral/users/adefaria/www"
  <Directory "/var/www/htdocs">
#  <Directory "//sonscentral/users/adefaria/www">
    Options Indexes FollowSymLinks MultiViews ExecCGI
  </Directory>
<Directory "/var/www/htdocs/addbug">
#<Directory "//sonscentral/users/adefaria/www/addbug">
    Options Indexes FollowSymLinks MultiViews ExecCGI
    AllowOverride AuthConfig
    Order allow,deny
    Allow from all
</Directory>

</VirtualHost>

If, however, I uncomment the things like DocumentRoot, etc and comment 
out their corresponding line then it fails to work. Note that the 
directory "addbug" was simply copied over so the contents are the same. 
Text vs. binary does not seem to be the issue.

It's funny because the server itself can get html files from a UNC path 
but seems to trip up when attempting to get the .htaccess file (I guess).

Note that originally I was not using .htaccess files at all, instead I 
would code the Auth stuff directly into the <Directory> directive. But 
that wasn't working. So I switched to trying the .htaccess method. It 
seems that using .htaccess does not work if the path is a UNC path. 
Tomorrow I'll try to find out why using Auth... in the <Directory> 
directive didn't work either.

To me this seems like a bug in Apache for Cygwin. Either it should 
support UNC paths fully or not at all.

Again, as I said before, when using Apache for Windows (and using UNCs 
with \\ as Windows likes) it worked fine (with the Auth stuff in 
<Directory>).

Oh and the observent will not that yes I am using Virtual hosts. Perhaps 
that's another factor.
===
Change is inevitable, except from a vending machine.



--
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