From owner-freebsd-questions@FreeBSD.ORG Tue Apr 24 14:18:48 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 813A316A401 for ; Tue, 24 Apr 2007 14:18:48 +0000 (UTC) (envelope-from o.greve@axis.nl) Received: from smtp.interstroom.nl (smtp1.interstroom.nl [80.85.129.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4B1B313C468 for ; Tue, 24 Apr 2007 14:18:47 +0000 (UTC) (envelope-from o.greve@axis.nl) Received: from ip127-180.introweb.nl ([80.65.127.180]:52916 helo=[192.168.1.133]) by smtp.interstroom.nl with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63) (envelope-from ) id 1HgLcF-0001MR-4p for freebsd-questions@freebsd.org; Tue, 24 Apr 2007 16:03:35 +0200 Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: <38A9B70D-9BF1-4F29-8123-D82907AE07BA@axis.nl> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-questions@freebsd.org From: Olaf Greve Date: Tue, 24 Apr 2007 16:03:33 +0200 X-Mailer: Apple Mail (2.752.3) Subject: How to manually patch/configure/compile Apache 2.2.4's mod_autoindex module? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2007 14:18:48 -0000 Hiya, I have run into a seemingly trivial, yet annoying issue. I used to use Apache 1.3.33 on my live server, and recently I upgraded to Apache 2.2.4, which apart from some hassles when upgrading the PHP4 extensions, went well. However, there is one small thingy that is different: there are exactly two directories on which I allow directory listings, and these listings are (also) called from an external W*nd*ws program that one of the users of my machine has made and has distributed. For this user, I had allowed directory listings, with fancyindexing enabled, and I thought everything would be fine, but.... Apache 1.3.33's mod_autoindex created listings using (uppercase) ... tags, and Apache 2.2.4's version outputs (lowercase) ... tags, and there ya go: the already widely distributed application solely checks for the uppercase version, and fails on the lowercase version. I had hoped that it would be easy to change this around, using some form of template, but after RTFM-ing on the mod_autoindex (and accompanying "options") documents, I am pretty certain that this is not the case (or I am overlooking it). In fact, it looks like the only place where this could be changed, is the mod_autoindex.c file, under the "work" directory in the proper "ports" directory. Now, I don't mind patching the C source to accomplish this, however, compiling it neatly into a properly working module may be more of a hassle, and as a further downside, this would have to be done each and every time I would possibly want to update Apache... Is there anyone who knows a better/easier way to achieve this? If not, is there anyone who can tell me an easy method to properly compile and link the mod_autoindex module (ideally using the provided Makefile)? Tnx in advance, and cheerz, Olafo