Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8866D10AC2 for ; Mon, 14 Apr 2014 17:11:55 +0000 (UTC) Received: (qmail 9005 invoked by uid 500); 14 Apr 2014 17:11:53 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 8952 invoked by uid 500); 14 Apr 2014 17:11:53 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 8909 invoked by uid 99); 14 Apr 2014 17:11:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2014 17:11:51 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [216.109.115.133] (HELO nm21-vm6.access.bullet.mail.bf1.yahoo.com) (216.109.115.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2014 17:11:44 +0000 Received: from [66.196.81.163] by nm21.access.bullet.mail.bf1.yahoo.com with NNFMP; 14 Apr 2014 17:11:21 -0000 Received: from [66.196.81.139] by tm9.access.bullet.mail.bf1.yahoo.com with NNFMP; 14 Apr 2014 17:11:21 -0000 Received: from [127.0.0.1] by omp1015.access.mail.bf1.yahoo.com with NNFMP; 14 Apr 2014 17:11:21 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 826363.63517.bm@omp1015.access.mail.bf1.yahoo.com Received: (qmail 95457 invoked by uid 60001); 14 Apr 2014 17:11:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1397495480; bh=xIdZXcH7r/YnQBtSFrpM4IHCzXpzMoaYfcVDtf6QOgQ=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=X2IFzgbWk0o0BorhzHkpUXjFy3lhadyxCbCXu60a2zV+KPtR3YkRCC/mPpLxKrgR1s+lTVCWKtBmW3FydOyuTUe5qHOMdgBnHUVAnLmFHPFyzUdnUyyx/9sALN0v+e+ijXwpaLywNPeHG6UdaKwwzCtjWsYtamJs7O4bpb2ZBJ0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=vcS0R5+QTqIIy5omV+ffPKIk8vogbtegjGQ6y5GnmJ1pxn+s79cfY+pMxI7j/2mXF2+diZr05VJNxwqTpbP69c1d2FEHZTu4sWtxK4nIx9c9hjAi6jCKDQbb/GZHQEuKwYDJRMKWFjLXnDMvP/F3e219m1U21EgH5+X2+cfuzqI=; X-YMail-OSG: tcCzxh4VM1lNnb5l5IJy4HpNJgzReitiFAwoIvgke8hkzlf Qf9jEfeBManF0t6lgy.F.xvltY_WPlmZxhOH7ZWsUVUg56QYwVdhLFxSpmig 5ABl1dH555J.qei0NskHo64w4miPJJmJ8bnlGB113wbPAW6vxfolsbhXQ3wu C9hV2bZuklD0kMd8r3DptcjAEEfwCrfzEvtDCmeW0m3xOCrvv.vBZsSaK359 MJGo4WxFfw9mdz.DzkMAOBnyrHwMsJS1Dfyf5H6mZgjeSaXsDBYlxmqK.e44 xDjIDvmKkpQUgbZ2OwronPN9RyghEltITeJSggTDamWlUhgWOLDxXy9g.7hR ASxhyBLRhrZU06yR56TAkayVEO.DH9VOH1g.1fKzy2ae4oqnOpOZUyNWQIZn WiqhRNOfLDj2C9NwQDpAI.Vd9PmS_H9LJzLdPWcJEK.YS7Vcw8I2hFo77YjK qc7cnhgwBXki.yw5lbiasJxp1JZfn6w.Cwt9eDYn8NeVvZQ9qR7KZdVbSyWC sE12lWh8Fz8aTeUEp9QsqOTgjmwAonH.oZt.pp4TwJkKvzpqHOmndAr.nKRq EWkR_QRQyrorWoPuMhotH_Vzfmuo0KlqPQGL0inNNTA.qtf09S.PpqRGQ.qh FZ7J.gC5tTw-- Received: from [99.189.12.49] by web181704.mail.ne1.yahoo.com via HTTP; Mon, 14 Apr 2014 10:11:20 PDT X-Rocket-MIMEInfo: 002.001,SSBmb3VnaHQgd2l0aDogCsKgwqAgLyA9IHtjb3VjaF9odHRwZF9taXNjX2hhbmRsZXJzLCBoYW5kbGVfdXRpbHNfZGlyX3JlcSwgIi4uL3NoYXJlL2NvdWNoZGIvd3d3L2luZGV4Lmh0bWwifQoKZm9yIGhvdXJzIGFscmVhZHkuwqAgaXQganVzdCBnaXZlcyBtZSAKwqDCoCAiIHsiZXJyb3IiOiJ1bmtub3duX2Vycm9yIiwicmVhc29uIjoiZnVuY3Rpb25fY2xhdXNlIn3CoCAiCgpUaGUgZmlsZSBpcyB0aGVyZSwgcmlnaHQgbmV4dCB0byBmYXZpY29uIGFuZCBhbGwgdGhvc2Ugb3RoZXIgcGFnZXMsIGJlY2F1c2UBMAEBAQE- X-Mailer: YahooMailWebService/0.8.185.657 References: <1397424531.24083.YahooMailNeo@web181703.mail.ne1.yahoo.com> <1397484841.28230.YahooMailNeo@web181702.mail.ne1.yahoo.com> <1397490947.60337.YahooMailNeo@web181703.mail.ne1.yahoo.com> Message-ID: <1397495480.49460.YahooMailNeo@web181704.mail.ne1.yahoo.com> Date: Mon, 14 Apr 2014 10:11:20 -0700 (PDT) From: Scott Weber Reply-To: Scott Weber Subject: Re: authentication_redirect is not working. To: "user@couchdb.apache.org" In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-31143512-488469767-1397495480=:49460" X-Virus-Checked: Checked by ClamAV on apache.org ---31143512-488469767-1397495480=:49460 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I fought with: =0A=A0=A0 / =3D {couch_httpd_misc_handlers, handle_utils_dir= _req, "../share/couchdb/www/index.html"}=0A=0Afor hours already.=A0 it just= gives me =0A=A0=A0 " {"error":"unknown_error","reason":"function_clause"}= =A0 "=0A=0AThe file is there, right next to favicon and all those other pag= es, because apparently this cannot refer to an attachment in a DB.=0A=0AI h= ave searched for hours, and not found any useful doc on handle_welcome_req,= handle_utils_dir_req, handle_config_req, etc...=0A=0A=0AI have the server = behind IIS, where it was forwarding every request in that domain back to co= uchDB... so I guess it's time to start looking at the ARR and ReWrite modul= es.=0A=0A=0A-Scott=0A=0A=0A=0A________________________________=0A From: Ben= oit Chesneau =0ATo: "user@couchdb.apache.org" ; Scott Weber =0ASent: Monday, = April 14, 2014 11:13 AM=0ASubject: Re: authentication_redirect is not worki= ng.=0A =0A=0AOn Mon, Apr 14, 2014 at 5:55 PM, Scott Weber wrote:=0A=0A> No, that doesn't work.=A0 It actually is worse.=0A>= =0A> If I remap the vhosts to a DB/Document, it gives me the WHOLE DOCUMENT= :=0A> [vhosts]=0A> www.mycompany.com =3D /login/source/=0A>=0A> Results:=0A= > www.mycompany.com=A0 -> maps to -> www.mycompany.com/login/source/=0A> (w= here 'login' is the landing zone, and 'source' is the document that has=0A>= the HTML attachment)=0A>=0A>=0A> On the other hand, when I map it to the d= ocument like this:=0A> [vhosts]=0A> www.mycompany.com =3D /login/source/ind= ex.html=0A>=0A> Results:=0A> www.mycompany.com=A0 -> maps to ->=0A> www.my= company.com/login/source/index.html=0A> however, now it is trying to open s= tyle sheets and js files that have the=0A> name:=0A>=0A> www.mycompany.com/= login/source/index.html.mystyle.css=0A> www.mycompany.com/login/source/inde= x.html.mainpage.js=0A>=0A> The obvious work around is to use the former opt= ion and mustspecify "=0A> www.mycompany.com/index.html" as required on the = address bar.=0A>=0A=0A=0AActually I also mentioneed something about the rew= rite.=0A=0Aso=0A=0Awww.mycompany.com =3D /db/ddoc/_rewrite=0A=0Aand do the = reqrite in it=0A=0A[{ "from": "/",=0A=A0 "to": /index.html=0A},...]=0A=0Aa= nd put an index.html in your ddoc attachments.=0A=0A=0A>=0A> Which is not w= hat is expected or were hoping for.=A0 All other web servers=0A> allow a de= fault doc setting, typically index.html or index.htm.=A0 Does=0A> CouchDB n= ot have something equivalent?=0A>=0A=0AYou may be able to do:=0A=0A/ =3D {c= ouch_httpd_misc_handlers, handle_utils_dir_req, "/path/to/index.html"}=0A= =0A=0Abut it will probably break some clients and the replication.=0A=0AAno= ther way is to do that on the proxy level.=0A=0A- benoit ---31143512-488469767-1397495480=:49460--