Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 7491 invoked from network); 9 Jan 2009 13:34:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jan 2009 13:34:06 -0000 Received: (qmail 73668 invoked by uid 500); 9 Jan 2009 13:33:56 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 73655 invoked by uid 500); 9 Jan 2009 13:33:56 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 73642 invoked by uid 99); 9 Jan 2009 13:33:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jan 2009 05:33:56 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mearns.b@gmail.com designates 74.125.46.154 as permitted sender) Received: from [74.125.46.154] (HELO yw-out-1718.google.com) (74.125.46.154) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jan 2009 13:33:48 +0000 Received: by yw-out-1718.google.com with SMTP id 6so3082312ywa.84 for ; Fri, 09 Jan 2009 05:33:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=mSo1ELBJlCAJQwd3iQYcXZH0Z/hL8AOgcuyfk2NzIJA=; b=DzYX+IqGQXtcpz6hoRZEjK0GQxSaauc86ArRhhB5YpU8u5JGlXz2xCPEfR0BXTl8HD gXWZgNKHlzB4aM/RRc6HFi09kjaVIWPkuIIUTwXU4mZVg9HBJNofIO83+fIlIFd9emx6 1UDFAAJztjsGajQVHJ39frB1X162K4uOJqaO8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=T2/ZiI2EQv7J3Iw7i7bRqfdlxgptKL5aVjUU6tdwc6/Z1eY988fXnlgx2hHJ6+tSKM CudAx9BGinq+XoO2R1WnxUqdMNa4Tw896ERkh5ZpP94oQlmtxlKSqfzct9JPexIyv5qv 672XT4TJu+BmWzPyKIkU4yxckjfbI2GEHxgOU= Received: by 10.64.213.20 with SMTP id l20mr2759537qbg.133.1231508007173; Fri, 09 Jan 2009 05:33:27 -0800 (PST) Received: by 10.65.81.7 with HTTP; Fri, 9 Jan 2009 05:33:27 -0800 (PST) Message-ID: <4df3a1330901090533r3ff15f92qa8a7539c6742ba14@mail.gmail.com> Date: Fri, 9 Jan 2009 08:33:27 -0500 From: "Brian Mearns" To: users@httpd.apache.org In-Reply-To: <4967313A.6010504@as-guides.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4967313A.6010504@as-guides.com> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Setting DirectoryIndex to a Location? I believe DirectoryIndex is what you're looking for: http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryindex The directive takes a local url as the argument. Yours, I guess, would be simply DirectoryIndex /eumel/linch I'll give you a heads up though, you may have difficulty figuring out what directory you're actually supposed to index from inside your perl script. As I recall, the "REQUEST_URI" evn var should give you address requested by the client (at least it does in PHP), but you'll need to figure out how to translate that into a local system path. If you don't use to many aliases or rewrite rules, it shouldn't be too hard. Also, just an FYI, it looks like you might be able to use the UserDir directive to accomplish what you're now doing with Aliases. Not sure if one is better than the other. http://httpd.apache.org/docs/2.2/mod/mod_userdir.html Hope that helps, -Brian On Fri, Jan 9, 2009 at 6:12 AM, Michael Ludwig wrote: > Given the following configuration: > > Alias /eumel /home/milu/www/eumel/www > > Options +Indexes > > > > SetHandler perl-script > PerlResponseHandler Eumel::Web::LinCh > > > Is there a way to make the program at /eumel/linch the > directory index without resorting to an HTTP redirect? > > Michael Ludwig > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > -- Feel free to contact me using PGP Encryption: Key Id: 0x3AA70848 Available from: http://pgp.mit.edu/ --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org