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: Tue, 30 Sep 2003 17:27:08 -0700 Lines: 60 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> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; 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: 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: ServerName adefaria ServerAdmin ADeFaria AT Salira DOT com DocumentRoot "/var/www/htdocs" # DocumentRoot "//sonscentral/users/adefaria/www" # Options Indexes FollowSymLinks MultiViews ExecCGI # Options Indexes FollowSymLinks MultiViews ExecCGI AllowOverride AuthConfig Order allow,deny Allow from all 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 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 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 ). 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/