Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 818CA10689 for ; Fri, 23 May 2014 04:12:08 +0000 (UTC) Received: (qmail 65711 invoked by uid 500); 23 May 2014 04:12:08 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 65659 invoked by uid 500); 23 May 2014 04:12:08 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 65651 invoked by uid 99); 23 May 2014 04:12:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2014 04:12:08 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [80.12.242.130] (HELO smtp.smtpout.orange.fr) (80.12.242.130) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2014 04:12:04 +0000 Received: from [192.168.1.10] ([90.20.160.129]) by mwinf5d16 with ME id 5GBg1o00C2noHju03GBgty; Fri, 23 May 2014 06:11:40 +0200 X-ME-Helo: [192.168.1.10] X-ME-Date: Fri, 23 May 2014 06:11:40 +0200 X-ME-IP: 90.20.160.129 Message-ID: <537ECA7B.4000009@wanadoo.fr> Date: Fri, 23 May 2014 06:11:39 +0200 From: Christophe JAILLET User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: Is mod_substitute effective on mod_autoindex-generated HTML? References: <537E97A0.5030104@aldan.algebra.com> In-Reply-To: <537E97A0.5030104@aldan.algebra.com> Content-Type: multipart/alternative; boundary="------------020609060103010104020104" X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --------------020609060103010104020104 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Hi, *users@httpd.apache.org * would be a better mailing list for such question, see http://httpd.apache.org/lists.html#http-users. Anyway, yes, this is supposed to work. Tested with a syntax that looks like: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> LoadModule substitute_module modules/mod_substitute.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule dir_module modules/mod_dir.so AddOutputFilterByType SUBSTITUTE text/html Substitute s/Parent/Father/ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> can be adjusted to your needs. Best regards, CJ Le 23/05/2014 02:34, Mikhail T. a �crit : > Hello! > > I'm trying to make some substitutions on the HTML-output generated by > mod_autoindex. > > However, things quietly do not work... Even the simplest directive: > > Substitute s/Parent/Father/ > > seems ignored -- and the browser is showing "Parent Directory" instead > of "Father Directory". > > Is this normal? I'm using Apache-2.4.6 currently... Thanks! > > -mi > --------------020609060103010104020104 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
Hi,

users@httpd.apache.org would be a better mailing list for such question, see http://httpd.apache.org/lists.html#http-users.

Anyway, yes, this is supposed to work.

Tested with a syntax that looks like:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
LoadModule substitute_module modules/mod_substitute.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule dir_module modules/mod_dir.so

<Location />
    AddOutputFilterByType SUBSTITUTE text/html
    Substitute s/Parent/Father/
</Location>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

<Location /> can be adjusted to your needs.

Best regards,
CJ


Le 23/05/2014 02:34, Mikhail T. a écrit :
Hello!

I'm trying to make some substitutions on the HTML-output generated by mod_autoindex.

However, things quietly do not work... Even the simplest directive:
Substitute s/Parent/Father/
seems ignored -- and the browser is showing "Parent Directory" instead of "Father Directory".

Is this normal? I'm using Apache-2.4.6 currently... Thanks!
-mi

--------------020609060103010104020104--