Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 82686 invoked from network); 3 Apr 2008 04:31:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Apr 2008 04:31:59 -0000 Received: (qmail 17084 invoked by uid 500); 3 Apr 2008 04:31:59 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 17053 invoked by uid 500); 3 Apr 2008 04:31:58 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 17044 invoked by uid 99); 3 Apr 2008 04:31:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 21:31:58 -0700 X-ASF-Spam-Status: No, hits=4.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS,URIBL_BLACK X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of prokhorenko@gmail.com designates 66.249.92.172 as permitted sender) Received: from [66.249.92.172] (HELO ug-out-1314.google.com) (66.249.92.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2008 04:31:16 +0000 Received: by ug-out-1314.google.com with SMTP id c2so755677ugf.27 for ; Wed, 02 Apr 2008 21:31:27 -0700 (PDT) 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:mime-version:content-type; bh=L2piG89dEbPbnagQBeIvmjF6gs+05vC0QXR/cui/UTs=; b=b6Tsb/I43+HQ8684lui7hvo0CtaOnJxj689WIqc062F21QapZYJAAYbLE2HZhTjg48M1tTv6pYRjc3bG3uTxGGNDFZWrDjG2BY7O2x3J8emxenXf/sR2voquPQ7mICg9oO9y7BvJxfVwOmq5PRFE0zsuG2mpV2MUpZ6VWr9CZhk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=rTh0iccmF79rY9X64dadCr2hQZTg3wiEdRgp4Q9BOM0jYRXqlMuocculszahypGRcF3iA3F5L94gdS0/PdT7otwMsgphC3Xp+zOD//GBnZTQhqUFE3tcOHWFXc3t23yGKX6E4UXvTnjHF4jftAA2oUVmfHgogqRG5CSD31E0FMU= Received: by 10.67.115.1 with SMTP id s1mr1098265ugm.74.1207197087072; Wed, 02 Apr 2008 21:31:27 -0700 (PDT) Received: by 10.67.98.7 with HTTP; Wed, 2 Apr 2008 21:31:27 -0700 (PDT) Message-ID: Date: Wed, 2 Apr 2008 21:31:27 -0700 From: "Olexandr Prokhorenko" To: modules-dev@httpd.apache.org Subject: Question: how to change the request in input filter and pass it to proxy MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6196_12401468.1207197087064" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_6196_12401468.1207197087064 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi everyone, I am working on the input filter which is going to catch on input requests, find the bucket with "Host: ", modify it and pass it through. I will modify it to something that does not belong to my httpd server, so I need to pass it through the proxy module (my guess ;). I can't use either the static ProxyPass or ProxyReversePass, because the host will be modified dynamically and it will depend on what is called and substitute it from the database call. It wasn't a big deal to catch on the Host: (well, I may also need to look for something like GET http://blablabla.com/, but this is not the highest priority now). I have created a new HEAP bucket, put it instead of an original one, however, a) it looks to me that Apache makes a call and gives an error saying file wasn't found, however the Web page displayed is the correct one, like not being rewritten, and the httpd child crashes; and b) I need to send it to proxy somehow and pass the call to it. I am not very good on concept, my book on Apache modules is still on the way, but I'd very appreciate any hints on this. Thank you. I'd very thankful for cc: me as well. -- Alexander Prohorenko. ------=_Part_6196_12401468.1207197087064--