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: Mon, 29 Sep 2003 19:22:01 -0700 Lines: 56 Message-ID: References: <3F78CBAA DOT 4996D2C AT wapme-systems DOT de> 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: <3F78CBAA.4996D2C@wapme-systems.de> Stipe Tolj wrote: >> Now that Apache for Cygwin seems to work more reliably I have started >> using it as my web server. However authentication (that was working >> with Apache for Windows) broke. I'm wondering if this is an Apache >> for Cygwin specific problem. >> >> I used to have this implemented at the server level in the httpd.conf >> file like so: >> >> # Secure addbug form >> >> AuthName "permission to add a bug" >> AuthType Basic >> AuthUserFile /etc/apache/addbug_users >> Require valid-user >> >> >> However that fails to work. The user is let in without being prompted >> for a username/password. I've also tried using a .htaccess file: >> >> AuthType Basic >> AuthName "permission to add a bug" >> AuthUserFile /etc/apache/addbug_users >> >> Require valid-user >> >> With the same non-success. I had cranked up the loglevel in the hopes >> that something about the failure would be written to the logs but >> nothing is. How can I debug/fix this? Does Apache for Cygwin do any >> authentication at all? >> >> Apache 1.3.24; Cygwin 1.5.4 > > did you used "AuthGroupFile /dev/null" in this scope too? Just did (in the .htaccess file). Didn't change anything. > I have no clue for this, because Authentication using the standard > mod_auth was working very reliably since decades for me. > > BTW, why is the path starting with *two* slashes? Maybe we > got the raeson for this behaviour at this point. The two slashes indicate a UNC name. In most aspects of Cygwin/Windows slashes can stand in for backslashes and are particularly useful. Otherwise one needs to have \\\\sonscentral\\users\\adefaria\\www\\Internal\\Release\\addbug\\! As I said, this configuration was working in Apache for Windows (where I was using the directive and a path like \\sonscentral\users\adefaria\www\Internal\Release\addbug\ - no need to double the backslashes for just Windows). === 5 days a week my body is a temple. The other two, it's an amusement park. -- 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/