From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1I67yQ-0002c5-RV for garchives@archives.gentoo.org; Wed, 04 Jul 2007 16:45:03 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l64Ghhu0017731; Wed, 4 Jul 2007 16:43:43 GMT Received: from Princeton.EDU (postoffice03.Princeton.EDU [128.112.131.174]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l64GdBaw012870 for ; Wed, 4 Jul 2007 16:39:11 GMT Received: from smtpserver1.Princeton.EDU (smtpserver1.Princeton.EDU [128.112.129.65]) by Princeton.EDU (8.13.8/8.13.8) with ESMTP id l64GdAnt003959 for ; Wed, 4 Jul 2007 12:39:10 -0400 (EDT) Received: from sep.dynalias.net (fez.Princeton.EDU [128.112.129.190]) (authenticated bits=0) by smtpserver1.Princeton.EDU (8.12.9/8.12.9) with ESMTP id l64GdAN6015411 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Wed, 4 Jul 2007 12:39:10 -0400 (EDT) Received: by sep.dynalias.net (Postfix, from userid 1001) id 7E9DC3CF761; Wed, 4 Jul 2007 12:39:48 -0400 (EDT) Date: Wed, 4 Jul 2007 12:39:48 -0400 From: Willie Wong To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Index to /usr/share/doc/...html... a reinvented wheel? Message-ID: <20070704163948.GA26427@princeton.edu> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <9acccfe50707031519w73abc638qb001cc5e9bb64d88@mail.gmail.com> <20070704102830.10f2392f@osage.osagesoftware.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070704102830.10f2392f@osage.osagesoftware.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Archives-Salt: 67762d90-8df1-4431-9a7e-bcfe61813596 X-Archives-Hash: 2c442af41864aa558772a978b87a1606 On Wed, Jul 04, 2007 at 10:28:30AM -0400, Penguin Lover David Relson squawked: > After saving your script to /var/www/localhost/cgi-bin/makeindex.perl > and running "chmod +x ...", I pointed firefox at > http://localhost/cgi-bin/makeindex.perl and got the following: > > Internal Server Error > > The server encountered an internal error or misconfiguration and > was unable to complete your request. > > Please contact the server administrator, root@localhost and inform > them of the time the error occurred, and anything you might have > done that may have caused the error. > > More information about this error may be available in the server > error log. > > Looking in /var/log/apache2/error_log I found > > [Wed Jul 04 10:22:06 2007] [error] [client 127.0.0.1] malformed > header from script. Bad header=Index of /usr/sha: > makeindex.perl > > > Looking at other simple scripts lead me to add > > print "Content-type: text/html; charset=iso-8859-1\n\n"; > I doubt that his script (which he mentions is to be run in cron) is meant to actually be placed in the cgi-bin directory for apache. It would certainly be annoying to need to have an apache server running just to read documentation. W -- When two egotists meet, it's an I for an I. Sortir en Pantoufles: up 208 days, 15:01 -- gentoo-user@gentoo.org mailing list