Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 48584 invoked by uid 500); 28 Dec 2002 03:23:41 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 48573 invoked from network); 28 Dec 2002 03:23:39 -0000 Received: from rinse.wov.idv.tw (211.20.30.100) by daedalus.apache.org with SMTP; 28 Dec 2002 03:23:39 -0000 Received: from [10.0.0.3] (cotton.wov.idv.tw [10.0.0.3]) by rinse.wov.idv.tw (8.12.6/8.12.6) with ESMTP id gBS3NiQL008712 for ; Sat, 28 Dec 2002 11:23:44 +0800 Date: Sat, 28 Dec 2002 11:23:44 +0800 From: imacat To: Apache Users In-Reply-To: References: <20021226005206.7DF9.IMACAT@mail.imacat.idv.tw> Message-Id: <20021228112328.C709.IMACAT@mail.imacat.idv.tw> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="===[PGP/MIME_RFC2015]===3E0D1930.39DD==="; protocol="application/pgp-signature"; micalg="pgp-sha1" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.05.06 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Scanned-By: MIMEDefang 2.21 (www . roaringpenguin . com / mimedefang) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] Content Negotiation with in Apache 2.0.43 --===[PGP/MIME_RFC2015]===3E0D1930.39DD=== Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable On Fri, 27 Dec 2002 12:33:58 -0500 (EST) Rich Bowen wrote: > -----BEGIN PGP SIGNED MESSAGE----- > On Thu, 26 Dec 2002, imacat wrote: > > imacat@rinse ~ % ls /var/tmp/htdocs -l > > total 12 > > -rw-r--r-- 1 imacat root 517 Dec 25 23:34 index.html.en > > lrwxrwxrwx 1 imacat root 13 Dec 25 23:36 index.html.html= ->=20 > index.html.en >=20 > This symlink will be explicitly ignored, since you don't have Options > FollowSymLinks turned on, as far as I can tell. Yes, you are right. And it does not do anything at all here. Lynx does send a Accept-Language header. There's no need to be a default document. It should be removed. > What Accept headers is lynx sending? What do the associated entries in > the access log look like? imacat@rinse ~ % cat /usr/local/apache/htdocs/imacat/cgi-bin/dumphead.cgi #! /bin/sh echo "Content-Type: text/plain; charset=3DUS-ASCII" echo set | grep ^HTTP_ imacat@rinse ~ % lynx -dump http://imacat/cgi-bin/dumphead.cgi HTTP_ACCEPT=3D'text/html, text/plain, text/sgml, */*;q=3D0.01' HTTP_ACCEPT_CHARSET=3D'big5, iso-8859-1;q=3D0.01, us-ascii;q=3D0.01' HTTP_ACCEPT_ENCODING=3D'gzip, compress' HTTP_ACCEPT_LANGUAGE=3Den HTTP_HOST=3Dimacat HTTP_USER_AGENT=3D'Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.= 6g' imacat@rinse ~ %=20 I believe its "en" here. The Accept-Charset has no effect here, since there's no AddCharset in the configuration file. > No, it should not, because that file is a symlink. Add > Options +FollowSymlinks > and see what happens. Yes, you are right. ^^; I made a mistake at this point. It's not used anyway. > > comment out : > > > > And try again, I'll get: > > > > imacat@rinse ~ % lynx -dump http://rinse:50080/ > > Test Page > > > > This is a test page. > > imacat@rinse ~ % >=20 > OK, this makes no sense to me at all. An empty section > should not have any effect on the results at all. I probably need to > experiment with this some on my own server. Well, that's the whole point. ^_*' My original configuration file is far more complicated. It's: imacat@rinse ~ % wc -l /etc/apache/httpd.conf 890 /etc/apache/httpd.conf imacat@rinse ~ % cat /etc/apache/httpd.conf =2E.. ErrorDocument 400 /errors/400.html ErrorDocument 401 /errors/401.html ErrorDocument 403 /errors/403.html ErrorDocument 404 /errors/404.html =2E.. imacat@rinse ~ %=20 I certainly will not put the whole 890 lines here. It makes no sense to debug such a large file on this list. I simplified the problem as much as possible. What I posted here (httpd2.conf-test) is the simplest abstract that can work and demostrate this problem. I had suspected if the problem comes from ErrorDocument, but then I was wrong. An empty disables the content negotiation of the directory index file, too. Of course, I can work around my own problem by having multiple s instead of a single . But that makes my configuration file more complicated. Besides, I still consider this as a problem that should be solved. I wish to make clear what happens here. > It is certainly not desired behavior. Try my suggestions, and I'll do > some experimentation on this end, now that I have some free time > available. I'll get back to you on this. Thank you. ^_*' By the way, type maps work here. (Thanks to Irmund Thum. ^_*') I shall consider using it, since it is much faster, according to the description. But it is painful to add type maps, as I'm using content negotiation throughout my websites. Also, as I said above, I still consider this as a problem that should be solved. It does not work as expected, according to the current documentation. If this is indeed a bug, there should be some fix on this. -- Best regards, imacat ^_*' imacat@mail.imacat.idv.tw PGP Key: http://www.imacat.idv.tw/me/pgpkey.txt <> News: http://www.wov.idv.tw/ Tavern IMACAT's: http://www.imacat.idv.tw/ TLUG List Manager: http://www.linux.org.tw/mailman/listinfo/tlug --===[PGP/MIME_RFC2015]===3E0D1930.39DD=== Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (MingW32) iD8DBQA+DRkvi9gubzC5S1wRAnGWAKCsuIWO2KxFlqfTW/ylEMi9f4NphwCfW4Vv 94QS5yz0UnW7ABSg7tcl8+k= =9I5J -----END PGP SIGNATURE----- --===[PGP/MIME_RFC2015]===3E0D1930.39DD===--