Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 3457 invoked from network); 17 Jul 2007 02:21:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jul 2007 02:21:44 -0000 Received: (qmail 63583 invoked by uid 500); 17 Jul 2007 02:21:16 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 63567 invoked by uid 500); 17 Jul 2007 02:21:16 -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 63556 invoked by uid 99); 17 Jul 2007 02:21:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jul 2007 19:21:16 -0700 X-ASF-Spam-Status: No, hits=3.0 required=10.0 tests=HTML_MESSAGE,IP_LINK_PLUS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [68.230.241.42] (HELO fed1rmmtao104.cox.net) (68.230.241.42) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jul 2007 19:21:10 -0700 Received: from fed1rmimpo01.cox.net ([70.169.32.71]) by fed1rmmtao104.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20070717022049.SHFA1393.fed1rmmtao104.cox.net@fed1rmimpo01.cox.net> for ; Mon, 16 Jul 2007 22:20:49 -0400 Received: from jefft41 ([72.201.237.27]) by fed1rmimpo01.cox.net with bizsmtp id QSLp1X00C0c9HtC0000000; Mon, 16 Jul 2007 22:20:49 -0400 From: "Jeff Murch" To: Date: Mon, 16 Jul 2007 19:20:50 -0700 Message-ID: <000301c7c819$17fbbd20$47f33760$@net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0004_01C7C7DE.6B9CE520" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcfIGRejXRkATfPTQ9Kzztpt9bgEig== Content-Language: en-us X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Need help with mod_proxy_html to re-write URL ------=_NextPart_000_0004_01C7C7DE.6B9CE520 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Almost there.. Here is the section of my httpd.conf that applies to the proxy config. I need to rewrite the html links on some of the pages from http to https, that's all. It seems simple but I've apparently got the syntax wrong (last line). Thanks, Jeff DocumentRoot "/opt/apache/htdocs" ProxyRequests Off ProxyPreserveHost On ProxyPass /dealer/ http://10.2.1.2/dealer/ ProxyPassReverse /dealer/ http://10.2.1.2/dealer/ ProxyPass /icons/ http://10.2.1.2/icons/ ProxyPassReverse /icons/ http://10.2.1.2/icons/ ProxyPass /cgi-bin/ http://10.2.1.2/cgi-bin/ ProxyPassReverse /cgi-bin/ http://10.2.1.2/cgi-bin/ ProxyPass / http://10.2.1.2/ ProxyPassReverse / http://10.2.1.2/ LoadFile /usr/lib/libxml2.so LoadModule proxy_html_module modules/mod_proxy_html.so ProxyHTMLURLMap http:// https:// ------=_NextPart_000_0004_01C7C7DE.6B9CE520 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Almost there……  Here is the = section of my httpd.conf that applies to the proxy config.   I need to = rewrite the html links on some of the pages from http to https, that’s all.  It = seems simple but I’ve apparently got the syntax wrong (last line).

 

Thanks, Jeff

 

 

DocumentRoot = "/opt/apache/htdocs"

ProxyRequests Off

ProxyPreserveHost On

ProxyPass /dealer/ = http://10.2.1.2/dealer/

ProxyPassReverse /dealer/ = http://10.2.1.2/dealer/

ProxyPass /icons/ = http://10.2.1.2/icons/

ProxyPassReverse /icons/ = http://10.2.1.2/icons/

ProxyPass /cgi-bin/ = http://10.2.1.2/cgi-bin/

ProxyPassReverse /cgi-bin/ = http://10.2.1.2/cgi-bin/

ProxyPass / http://10.2.1.2/

ProxyPassReverse / http://10.2.1.2/

 

LoadFile /usr/lib/libxml2.so

LoadModule proxy_html_module = modules/mod_proxy_html.so

ProxyHTMLURLMap  http:// = https://

 

------=_NextPart_000_0004_01C7C7DE.6B9CE520--