Received: with ECARTIS (v1.0.0; list gopher);
 Wed, 07 Aug 2002 13:45:45 -0500 (EST)
Return-Path: <jgoerzen@complete.org>
Delivered-To: gopher@complete.org
Received: from christoph.complete.org (unknown [168.215.193.254])
	(using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits))
	(Client CN "christoph.complete.org",
 Issuer "John Goerzen -- Root CA" (verified OK))
	by gesundheit.complete.org (Postfix) with ESMTP
	id B8CB862EB3; Wed,  7 Aug 2002 13:45:43 -0500 (EST)
Received: by christoph.complete.org (Postfix, from userid 1000)
	id 2CD8D166BA; Wed,  7 Aug 2002 13:45:36 -0500 (EST)
Date: Wed, 7 Aug 2002 13:45:36 -0500
From: John Goerzen <jgoerzen@complete.org>
To: gopher@complete.org
Subject: [gopher] Re: PyGopherd UMN Broken
Message-ID: <20020807184536.GL3736@complete.org>
References: <3D50C2BD.4010005@myrealbox.com>
 <20020807070926.GC832@complete.org> <3D515FC3.2090403@myrealbox.com>
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3D515FC3.2090403@myrealbox.com>
User-Agent: Mutt/1.4i
Content-Transfer-Encoding: 8bit
X-archive-position: 672
X-ecartis-version: Ecartis v1.0.0
Sender: gopher-bounce@complete.org
Errors-to: gopher-bounce@complete.org
X-original-sender: jgoerzen@complete.org
Precedence: bulk
Reply-to: gopher@complete.org
List-help: <mailto:ecartis@complete.org?Subject=help>
List-unsubscribe: <mailto:gopher-request@complete.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-ID: Gopher <gopher.complete.org>
X-List-ID: Gopher <gopher.complete.org>
List-subscribe: <mailto:gopher-request@complete.org?Subject=subscribe>
List-owner: <mailto:jgoerzen@complete.org>
List-post: <mailto:gopher@complete.org>
List-archive: <http://www.complete.org/mailinglists/archives/>
X-list: gopher


On Wed, Aug 07, 2002 at 12:58:27PM -0500, Aaron J. Angel wrote:

> Well, I can't seem to get anything in .Links or .names working.  Here's 
> something I tried to use just now:
> 
> Name=Journaling Versus Soft Updates...Web site
> Type=h
> Path=GET%20/publications/library/proceedings/usenix2000/general/seltzer.html
> Host=www.usenix.org
> Port=80

UMN-style dotfiles must have the Path= line first in each clause.  Put that
first and it should work.

Also, there's no need to do the GET%20 trick with Pygopherd.  Try this:

Path=URL:http://www.usenix.org/publications/blahblah...
Name=Journaling Versus Soft Updates...Web site
Type=h
Host=+
Port=+

This is handled by the url.HTMLURLHandler (see pygopherd.conf).  For Gopher
clients that understand URL links, they will go directly to that page upon
seeing it.  For the rest, PyGopherd will generate an HTML page on-the-fly
that will redirect people to the appropriate final destination.  This works
with name-based virtual hosts and lets a page's graphics work correctly,
unlike the GET trick.

-- John

-- 
John Goerzen <jgoerzen@complete.org>    GPG: 0x8A1D9A1F    www.complete.org