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 6B87510AFB for ; Mon, 14 Apr 2014 03:45:54 +0000 (UTC) Received: (qmail 16593 invoked by uid 500); 14 Apr 2014 03:45:52 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 16167 invoked by uid 500); 14 Apr 2014 03:45:51 -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 16159 invoked by uid 99); 14 Apr 2014 03:45:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2014 03:45: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 (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [216.109.115.152] (HELO nm22-vm9.access.bullet.mail.bf1.yahoo.com) (216.109.115.152) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2014 03:45:43 +0000 Received: from [66.196.81.155] by nm22.access.bullet.mail.bf1.yahoo.com with NNFMP; 14 Apr 2014 03:45:22 -0000 Received: from [66.196.81.138] by tm1.access.bullet.mail.bf1.yahoo.com with NNFMP; 14 Apr 2014 03:45:22 -0000 Received: from [127.0.0.1] by omp1014.access.mail.bf1.yahoo.com with NNFMP; 14 Apr 2014 03:45:22 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 221602.26475.bm@omp1014.access.mail.bf1.yahoo.com Received: (qmail 16034 invoked by uid 60001); 14 Apr 2014 03:45:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1397447121; bh=0H7Z8PaRiSMS+nq4GQi0ei9uCJssIwt9JXpAwkPzyTQ=; 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=YqAtXZi0GlEZlbF/GBXRxWM/H9c5wKBh4yLZL2Pe4Iqyl/msFPSlyPSdGuAl00PRXAUbc+LJQtBVyMZnsOydck0fXDZ5ETnNb0XlzZ4EaBKsXDSAyHIomMANOP5dsMPul2v91nTWghPFBwVYlln3ApYerE0M5lTL+SApr1/qgAM= 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=Tse7TEJtpUjHnBCBkdbmUc6pm6yAYewp8TM8slZMlJHsb+rxmjkLdZmccgRe06QXlx43lyfSJ/A41G5mO8bRF2Gj8HH2+IyGnXLK+lPwtyd++SLxhHyna5TgfUikg4sP+4Rktr6QWlA+EJQIVq8I03PudVFnck7MRZFZdvN5CTI=; X-YMail-OSG: fmWzMmwVM1nb4kfrz1MVQuihrr06pe05oWeCrcAl0xj2_le 6UsXcLlxSGtkDyrF9EDEKJwjeXQi4rZyhOCK._RsTK8Y_TlaxwtrzBqFkbXd RIdwh5QtS_huS5f5czGymenrgB.N_ik0QM7xFHzb4WiaFstei42Lt1ziGe56 hQ2RgxLFxqy6_MPvVDRcmeY_Ibw.I8IGtTcLrwV1tUEhO2UAmvI8FL2E7Dx_ f4vtM1A9vrdPEzBIHXyk7T.VvCepoGSPoZ8itofD5cEZ6nRsCXBXN7QVQiWg Oim1Z1EHLLj28_kQFdp5GYFMs4P_7tEVJJmi9xKk.zBICCsz7PPBj04PEZii zEsbYsZulo9oQ5chjmKYk0_nttxki0ZWR8VAqXKDTu_ZLwhptzRhQTUzzN1V u7j4ZIkl7OCwuZtBlKhWPlD.phsHivxTj7mZYvwXAPiuVPFu3lJDIl6xrRRQ _4JQTTqyiRVduwb5fouke_FbRnTstTSM1TuznhMKNyP26Yu_yc4V1YF609nb FstyDftQ0InTiqUMlhI_wkJcch92OD14xJF7VHq1ImiPCfA.mb1kh3BfABaJ ecIRx Received: from [99.189.12.49] by web181703.mail.ne1.yahoo.com via HTTP; Sun, 13 Apr 2014 20:45:21 PDT X-Rocket-MIMEInfo: 002.001,VGhhbmtzLCBidXQgdGhhdCdzIG5vdCBhIGxvdCB0byBnbyBvbi4uLgoKSSB0cmllZCBjb3B5aW5nIHRoZSBoYW5kbGVyIGZyb20gX3V0aWxzOgoKLyA9IHtjb3VjaF9odHRwZF9taXNjX2hhbmRsZXJzLCBoYW5kbGVfdXRpbHNfZGlyX3JlcSwgIi9tZS90aGVyZS9wYWdlLmh0bWwifQpJIGdvdDoKCnsiZXJyb3IiOiJ1bmtub3duX2Vycm9yIiwicmVhc29uIjoiZnVuY3Rpb25fY2xhdXNlIn0KCkkgdHJpZWQ6CgovID0ge2NvdWNoX2h0dHBkX21pc2NfaGFuZGxlcnMsIGhhbmRsZV93ZWxjb21lX3JlcSwgIi9tZS8BMAEBAQE- X-Mailer: YahooMailWebService/0.8.182.648 References: <1397445268.73041.YahooMailNeo@web181704.mail.ne1.yahoo.com> Message-ID: <1397447121.296.YahooMailNeo@web181703.mail.ne1.yahoo.com> Date: Sun, 13 Apr 2014 20:45:21 -0700 (PDT) From: Scott Weber Reply-To: Scott Weber Subject: Re: Handle the Welcome Request To: "user@couchdb.apache.org" In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="943787736-650029045-1397447121=:296" X-Virus-Checked: Checked by ClamAV on apache.org --943787736-650029045-1397447121=:296 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Thanks, but that's not a lot to go on...=0A=0AI tried copying the handler f= rom _utils:=0A=0A/ =3D {couch_httpd_misc_handlers, handle_utils_dir_req, "/= me/there/page.html"}=0AI got:=0A=0A{"error":"unknown_error","reason":"funct= ion_clause"}=0A=0AI tried:=0A=0A/ =3D {couch_httpd_misc_handlers, handle_we= lcome_req, "/me/there/page.html"}=0Aand =0A=0A/ =3D {couch_httpd_misc_handl= ers, handle_welcome_req, "../me/there/page.html"}=0ASame result.=0A=0ABy th= e way, the redirection is to a database/document/attachment, not a generic = file on the disk (specifically a login for the app)=0A=0AThe log is 130 lin= es of error, not like the last time.=0A=0A... GMT] [info] [<0.112.0>] Stack= trace: [{couch_httpd_db,handle_request,=0A[{httpd,=0A{mochiweb_request,=0A[= #Port<0.4455>,'GET',"//",=0A{1,1},=0A{8,=0A{"host",=0A{'Host',"localhost:59= 84"},=0A{"accept",=0A{'Accept',=0A"text/html,application/xhtml+xml,applicat= ion/xml;q=3D0.9,*/*;q=3D0.8"},=0Anil,=0A{"accept-language",=0A{'Accept-Lang= uage',"en-US,en;q=3D0.5"},=0A{"accept-encoding",=0A{'Accept-Encoding',"gzip= , deflate"},=0Anil,nil},=0A{"cookie",=0A{'Cookie',=0A"__utma=3D111872281.61= 8741229.1391889742.1391889742.1391889742.1; __utmz=3D111872281.1391889742.1= .1.utmcsr=3D(direct)|utmccn=3D(direct)|utmcmd=3D(none); TimeChoice=3Dsweber= "},=0A{"connection",=0A{'Connection',"keep-alive"},=0A{"cache-control",=0A{= 'Cache-Control',"max-age=3D0"},=0Anil,nil},=0Aetc...=0A=0A=0A=0A=0A=0A_____= ___________________________=0A From: Alexander Shorin =0A= To: "user@couchdb.apache.org" ; Scott Weber =0ASent: Sunday, April 13, 2014 10:23 PM=0ASubject: Re= : Handle the Welcome Request=0A =0A=0AYou probably would like to copy _util= s global handler config value instead.=0A--=0A,,,^..^,,,=0A=0A=0A=0AOn Mon,= Apr 14, 2014 at 7:14 AM, Scott Weber wrote:=0A>= Greetings again,=0A> I am trying to handle the Welcome message that appear= s from a root request.=0A> I am using version 1.5 on a Windows machine.=0A>= =0A>=0A> Specifically I want to direct the "/" request to another url.=0A> = After hours of searching, the closest I found was this:=0A>=0A>=0A> https:/= /issues.apache.org/jira/browse/COUCHDB-472=0A> which describes putting the = changes in the [httpd_global_handlers] section.=0A>=0A> So I followed the c= hanges documented at18/Aug/09 14:43=0A> I replaced the root handler with bo= th suggestions in the log. Neither worked, they gave me a "500 server error= ".=0A> For example I set this:=0A>=0A>=0A> / =3D {couch_httpd_misc_handlers= , handle_welcome_req, {<<"Welcome">>,"/me/there/page.html"}}=0A>=0A> In the= couch log, I get:=0A> httpd 500 error response:=0A>=A0 {"error":"json_enco= de","reason":"{bad_term,{<<\"Welcome\">>,\"/me/there/page.html\"}}"}=0A>=0A= >=0A> Is there any other solution to this?=0A>=0A> -Scott --943787736-650029045-1397447121=:296--