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 9742D10FCE for ; Fri, 18 Apr 2014 13:56:39 +0000 (UTC) Received: (qmail 60963 invoked by uid 500); 18 Apr 2014 13:56:38 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 60883 invoked by uid 500); 18 Apr 2014 13:56:37 -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 60874 invoked by uid 99); 18 Apr 2014 13:56:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2014 13:56:37 +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 (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [216.39.63.126] (HELO nm8-vm5.access.bullet.mail.gq1.yahoo.com) (216.39.63.126) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2014 13:56:31 +0000 Received: from [216.39.60.167] by nm8.access.bullet.mail.gq1.yahoo.com with NNFMP; 18 Apr 2014 13:56:10 -0000 Received: from [216.39.60.252] by tm3.access.bullet.mail.gq1.yahoo.com with NNFMP; 18 Apr 2014 13:56:10 -0000 Received: from [127.0.0.1] by omp1023.access.mail.gq1.yahoo.com with NNFMP; 18 Apr 2014 13:56:10 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 480532.12700.bm@omp1023.access.mail.gq1.yahoo.com Received: (qmail 87029 invoked by uid 60001); 18 Apr 2014 13:56:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1397829369; bh=gSXaYm7URpop5jwiz84b8IufcyxwjJjEquUzHW+xk14=; 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=CA55ndgRk7v6eaoHldH7MS8wx/AvxZP68TU/sMgsM19/WS9YGBdRCLJUwRMLzUdgAMDvFkhiLhsCN6SPuFxgIFwMJvp9BKErkLmLwVIR3OF8zhPA3LKwT2hPWnem+WwnDUSaajyykuoDPDdawNHUxEPGx4ru8v2jWgZS0FN2ZaQ= 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=gg1OgptoybYKxwYcMD8HP2qDWxdct2TjxIJ1oDspkD7E6PKypUkoaxurlbKZa6iBna6xcaqyusJihVENUulfJjDXKvHFCCUFqcgOdi+PVdx7030SqtxmMoez3dOQEh3JePtdTh4jK3iNsX4M13j/DB88Mo6E2z00U+EzuAIz2Cs=; X-YMail-OSG: zHks5ToVM1lJgeKLUAbwABuxhUB.ogtQI6IKCgW7exWZBEd NHffvRphamWVyjj49Y3VsXHd2_ehLNkwpjKLdQ9Qm1uCs.MyV9W_gJGKcOxt vRzWdh5Hk6eYHdQ7UZULqfPvy75R7ut4DmLVrEoxyZWhIZbFIBdnXQIOuqIi V6kTHDblXhS70MbZfmdk6FGYZOeDCE35lsQKmW8zGi8XIEsDgkw7h6HGHnF3 OHe8iLqZsUD8PoAyq5K1F5RPpG.kcjVDfTEPLe9G0WFT7Do.HbMUW0ZqBxFn 9SYU8oUuC.pLzzVwiwGcccACHlYY9uUy.eJ.cewLYLTEqAEeB67oJSbx3MeN _RwT4PF3SlJesYEQK5XJ.dhnw9fAK_9TFpRj_j0ypf4042LG2ZKMapDi23gj eh88dxx9UmbdqGigEFdpERhSEoKHWin44aI7FkoOeVg6D8R0Rla8kK62sAje edqW7eaag7VhxljGzTtRY8x51qR1GFgqXsYWS6PEpcxX2ulAzWCRRnFZ2rWi xgXkBbxpzbT7uxMim8xkSm4HAM01mEJyZt7jnsniN0K6DjEltRGHZZqu0PGT zlZVCLk9_rXzBUiSjwFKr7Pa3m4hxFH9BjRa7H2vZ6.hWfhslhE6GtnVCCwk NXHm7fLuP Received: from [99.189.12.49] by web181706.mail.ne1.yahoo.com via HTTP; Fri, 18 Apr 2014 06:56:09 PDT X-Rocket-MIMEInfo: 002.001,WWVzLCBJIHRyaWVkIHRvIGltcGxlbWVudCB0aGUgdmhvc3QgYW5kIHJlZGlyZWN0LiB2aG9zdCB3YXMgYmVoYXZpbmcgYXMgZG9jdW1lbnRlZC4gVGhlIHJlZGlyZWN0IHdhcyBub3QuIFRoZXJlIHdhcyBubyBjaGFuZ2UgaW4gYmVoYXZpb3IuCgpUaGUgcHVycG9zZSBpcyB0aGF0IEkgd2FzIGxlZCB0byBiZWxpZXZlIHRoYXQgdGhpcyBzZXJ2ZXIgd291bGQgZWxpbWluYXRlIHRoZSBuZWVkIGZvciBhIHB1YmxpYyBmYWNpbmcgZ2VuZXJhbCB3ZWIgc2VydmVyLiBBcyBzdWNoLCByZWFsIGRvbWFpbnMgc2hvdyABMAEBAQE- 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> <1397495480.49460.YahooMailNeo@web181704.mail.ne1.yahoo.com> Message-ID: <1397829369.80661.YahooMailNeo@web181706.mail.ne1.yahoo.com> Date: Fri, 18 Apr 2014 06:56:09 -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="-1392739086-1107633858-1397829369=:80661" X-Virus-Checked: Checked by ClamAV on apache.org ---1392739086-1107633858-1397829369=:80661 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Yes, I tried to implement the vhost and redirect. vhost was behaving as doc= umented. The redirect was not. There was no change in behavior.=0A=0AThe pu= rpose is that I was led to believe that this server would eliminate the nee= d for a public facing general web server. As such, real domains show you ac= tual content at their root level, not a dry "welcome to couchdb" message.= =0A=0AI can see that this is not such a good idea, for a number of reasons.= =A0 Fortunately I have already placed it in a farm behind a formal server, = and can control access through rewrites and server side scripts. It turned = into a classic example of using a tool for what it is good at, not trying t= o make it into something it is not designed for.=0A=0A-Scott=0A=0A=0A=0A=0A= ________________________________=0A From: Benoit Chesneau =0ATo: "user@couchdb.apache.org" ; Scott Weber= =0ASent: Wednesday, April 16, 2014 4:08 AM=0ASu= bject: Re: authentication_redirect is not working.=0A =0A=0AOn Mon, Apr 14,= 2014 at 7:11 PM, Scott Weber wrote:=0A=0A> I fou= ght with:=0A>=A0 =A0 / =3D {couch_httpd_misc_handlers, handle_utils_dir_req= ,=0A> "../share/couchdb/www/index.html"}=0A>=0A> for hours already.=A0 it j= ust gives me=0A>=A0 =A0 " {"error":"unknown_error","reason":"function_claus= e"}=A0 "=0A>=0A> The file is there, right next to favicon and all those oth= er pages,=0A> because apparently this cannot refer to an attachment in a DB= .=0A>=0A> I have searched for hours, and not found any useful doc on=0A> ha= ndle_welcome_req, handle_utils_dir_req, handle_config_req, etc...=0A>=0A>= =0A> I have the server behind IIS, where it was forwarding every request in= =0A> that domain back to couchDB... so I guess it's time to start looking a= t the=0A> ARR and ReWrite modules.=0A>=0A>=0A> -Scott=0A>=0A>=0AAgain. Did = you try the vhost + redirect rule?=0A=0AWhat's the goal of changing this we= lcome message?=0A=0A=0A>=0A> ________________________________=0A>=A0 From: = Benoit Chesneau =0A> To: "user@couchdb.apache.org" ; Scott Weber <=0A> scotty2541@sbcglobal.net>=0A> Sen= t: Monday, April 14, 2014 11:13 AM=0A> Subject: Re: authentication_redirect= is not working.=0A>=0A>=0A> On Mon, Apr 14, 2014 at 5:55 PM, Scott Weber <= scotty2541@sbcglobal.net=0A> >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 /lo= gin/source/=0A> >=0A> > Results:=0A> > www.mycompany.com=A0 -> maps to -> w= ww.mycompany.com/login/source/=0A> > (where 'login' is the landing zone, an= d 'source' is the document that has=0A> > the HTML attachment)=0A> >=0A> >= =0A> > On the other hand, when I map it to the document like this:=0A> > [v= hosts]=0A> > www.mycompany.com =3D /login/source/index.html=0A> >=0A> > Res= ults:=0A> > www.mycompany.com=A0 -> maps to ->=0A> > www.mycompany.com/log= in/source/index.html=0A> > however, now it is trying to open style sheets a= nd js files that have the=0A> > name:=0A> >=0A> > www.mycompany.com/login/s= ource/index.html.mystyle.css=0A> > www.mycompany.com/login/source/index.htm= l.mainpage.js=0A> >=0A> > The obvious work around is to use the former opti= on and mustspecify "=0A> > www.mycompany.com/index.html" as required on the= address bar.=0A> >=0A>=0A>=0A> Actually I also mentioneed something about = the rewrite.=0A>=0A> so=0A>=0A> www.mycompany.com =3D /db/ddoc/_rewrite=0A>= =0A> and do the reqrite in it=0A>=0A> [{ "from": "/",=0A>=A0 =A0 "to": /ind= ex.html=0A> },...]=0A>=0A> and put an index.html in your ddoc attachments.= =0A>=0A>=0A> >=0A> > Which is not what is expected or were hoping for.=A0 A= ll other web servers=0A> > allow a default doc setting, typically index.htm= l or index.htm.=A0 Does=0A> > CouchDB not have something equivalent?=0A> >= =0A>=0A> You may be able to do:=0A>=0A> / =3D {couch_httpd_misc_handlers, h= andle_utils_dir_req,=0A> "/path/to/index.html"}=0A>=0A>=0A> but it will pro= bably break some clients and the replication.=0A>=0A> Another way is to do = that on the proxy level.=0A>=0A> - benoit=0A> ---1392739086-1107633858-1397829369=:80661--