From owner-freebsd-questions Wed Feb 20 21:41:21 2002 Delivered-To: freebsd-questions@freebsd.org Received: from tao.agoron.com (tao.agoron.com [206.181.233.66]) by hub.freebsd.org (Postfix) with ESMTP id A480637B417 for ; Wed, 20 Feb 2002 21:41:14 -0800 (PST) Received: from quasi1 (quasi.shredco.com [206.181.233.90]) by tao.agoron.com (8.9.3/8.9.3) with ESMTP id AAA13024; Thu, 21 Feb 2002 00:41:13 -0500 (EST) From: "Marius Kirschner" To: "'Lord Raiden'" , "'FreeBSD Questions'" Subject: RE: .htaccess Date: Thu, 21 Feb 2002 00:41:15 -0500 Message-ID: <01ee01c1ba9a$61032310$5ae9b5ce@quasi1> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 In-Reply-To: <4.2.0.58.20020220204534.009cf580@pop.netzero.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It's on the same server alright, and I've tried some of your suggestions but it doesn't make a difference. I think the problem is in the httpd.conf and I must have gone over it 20-30 times without finding anything obvious wrong. ---Marius > -----Original Message----- > From: Lord Raiden [mailto:raiden23@netzero.net] > Sent: Wednesday, February 20, 2002 9:07 PM > To: Marius Kirschner; FreeBSD Questions > Subject: Re: .htaccess > > Ok, my turn to put in my 2cents and help out here. :) > > I'm no apache guru on this, but I've done my time around the > block. If I'm wrong, someone back me up on this. :) Ok, is the website > www.virtualweb.com exist on another server and points to the > www.web.com/~joedoe/secure, or is it hosted on the same machine? IF it's > on the same machine, you've got something setup in apache wrong that it's > trying to see a different .htaccess file. If it's on a different machine, > it won't see the .htaccess file at all, so your efforts are pointless. :) > > Now, on to the second thing. You need the reference you have in > the .htaccess file in the secure directory in your .htaccess file in the > root directory. You still need your other copy in the secure > directory. I've had some situations where this was the only way it > worked, > other times it worked like it should where the server looks at the > .htaccess file in the given directory access, but personally I've only > gotten the virtual web references to work if both the root web, in this > case www.web.com/joeuser/ and the /secure/ directories have the same info > in the .htaccess files. > > Another thing. Sometimes apache doesn't like direct pathnames, > but instead will only work with references like "AuthUserFile > www.virtualweb.com/secure/.htpasswd" Had to do that with one of my error > documents onetime. Try these ideas. And when you go hacking your > .htaccess, remember to make a backup so if you toast something, you got an > original to backup on. Learned that one the hard way too. :) Always > backup any file you plan to edit, no matter how insignificant. hehe. > > At 05:29 PM 2/20/02 -0500, Marius Kirschner wrote: > >I'm pulling my hair here....can't get .htaccess to work properly. > > > >If I do http://www.web.com/~joedoe/secure it WORKS > > > >But if I have a virtual web site's document root point to > >/usr/home/joedoe/html and do a > > > >http://www.virtualweb.com/secure it DOESN'T work! > > > >The .htaccess and .htpasswd files are in the /usr/home/joedoe/secure > >directory, but if I go there using the virtual domain name it by-passes > >the .htaccess file. > > > >The .htaccess looks like that: > > > >AuthUserFile /usr/home/joedoe/html/secure/.htpasswd > >AuthName "Private" > >AuthType Basic > >require user vippy > >Satisfy any > > > >Any clues? Thanks, > > > > ---Marius > > > > > > > > > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org > >with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message