Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 85192 invoked from network); 18 Jun 2005 17:06:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jun 2005 17:06:22 -0000 Received: (qmail 16712 invoked by uid 500); 18 Jun 2005 17:06:10 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 16686 invoked by uid 500); 18 Jun 2005 17:06:10 -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 16663 invoked by uid 99); 18 Jun 2005 17:06:09 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=HTML_20_30,HTML_MESSAGE X-Spam-Check-By: apache.org Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Jun 2005 10:06:07 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=HTML_20_30,HTML_MESSAGE Received-SPF: pass (asf.osuosl.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [217.12.10.150] (HELO web25504.mail.ukl.yahoo.com) (217.12.10.150) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 18 Jun 2005 10:05:41 -0700 Received: (qmail 713 invoked by uid 60001); 18 Jun 2005 17:05:44 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=UZft5of99aCOHVcLpsutPGgiO4oRCnSyQ9mmEC/i/sQ4ZDxOwYuovODai2XxZTSAnc9n6743SmBC6vOP6Kw1LBWAnMapTPIAJJ5zldaSZbPIFJBAl/c00gMDzL7Hues2W3fAv75ZClkDOGLkAfRsaDpO8hjOIwe2VANSNS7cEDo= ; Message-ID: <20050618170544.711.qmail@web25504.mail.ukl.yahoo.com> Received: from [81.151.149.123] by web25504.mail.ukl.yahoo.com via HTTP; Sat, 18 Jun 2005 18:05:44 BST Date: Sat, 18 Jun 2005 18:05:44 +0100 (BST) From: Craig Sawyer To: users@httpd.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1631566334-1119114344=:99955" Content-Transfer-Encoding: 8bit X-Old-Spam-Check-By: apache.org Subject: [users@httpd] users-unsubscribe@httpd.apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --0-1631566334-1119114344=:99955 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Ian Huynh wrote: you can use mod_rewrite to change the URL and proxy at the same time. add these lines in your httpd.conf LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule rewrite_module modules/mod_rewrite.so RewriteEngine on RewriteRule ^/(.*) http://localhost:8080/$1 [P,L] and remove your ProxyPass, ProxyPassReverse directives -----Original Message----- From: Fabricio Luiz Machado [mailto:soproman@yahoo.com.br] Sent: Wednesday, June 15, 2005 1:33 PM To: apache.org Subject: [users@httpd] ProxyPass with variables... Hi there! I integrate Apache + JBOSS with mod_proxy and it�s working fine to me. Now, I will have a big application, for hundreds of different profile clients. These clients must access the application with an URL like this: http://app.mydomain.com/client1 http://app.mydomain.com/client2 http://app.mydomain.com/whatever And I have to proxy this requests like this: ProxyPass /client1 http://localhost:8080/client1 ProxyPassReverse /client1 http://localhost:8080/client1 ProxyPass /client2 http://localhost:8080/client2 ProxyPassReverse /client2 http://localhost:8080/client2 ProxyPass /whatever http://localhost:8080/whatever ProxyPassReverse /whatever http://localhost:8080/whatever The problem, ist that I don�t want to manage this hundreds 'ProxyPass' directives one by one, because it will hurts... Is there a way to use variables to create an unique 'ProxyPass' ? For example: ProxyPass /%{VARIABLE} http://localhost:8080/%{VARIABLE} ProxyPassReverse /%{VARIABLE} http://localhost:8080/%{VARIABLE} Any sugestions will be great... Thanks! Fabricio. _______________________________________________________ Yahoo! Acesso Gr�tis - Internet r�pida e gr�tis. Instale o discador agora! http://br.acesso.yahoo.com/ --------------------------------------------------------------------- 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 --------------------------------------------------------------------- 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 --------------------------------- Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail --0-1631566334-1119114344=:99955 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit


Ian Huynh <ianh@hubspan.com> wrote:

you can use mod_rewrite to change the URL and proxy at the same time.

add these lines in your httpd.conf

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so

RewriteEngine on
RewriteRule ^/(.*) http://localhost:8080/$1 [P,L]

and remove your ProxyPass, ProxyPassReverse directives

-----Original Message-----
From: Fabricio Luiz Machado [mailto:soproman@yahoo.com.br]
Sent: Wednesday, June 15, 2005 1:33 PM
To: apache.org
Subject: [users@httpd] ProxyPass with variables...


Hi there!

I integrate Apache + JBOSS with mod_proxy and it�s working fine to me.
Now, I will have a big application, for hundreds of different profile
clients.

These clients must access the application with an URL like this:

http://app.mydomain.com/client1
http://app.mydomain.com/client2
http://app.mydomain.com/whatever

And I have to proxy this requests like this:

ProxyPass /client1 http://localhost:8080/client1
ProxyPassReverse /client1 http://localhost:8080/client1

ProxyPass /client2 http://localhost:8080/client2
ProxyPassReverse /client2 http://localhost:8080/client2

ProxyPass /whatever http://localhost:8080/whatever
ProxyPassReverse /whatever http://localhost:8080/whatever

The problem, ist that I don�t want to manage this hundreds 'ProxyPass'
directives one by one, because it will hurts...

Is there a way to use variables to create an unique 'ProxyPass' ?
For example:
ProxyPass /%{VARIABLE} http://localhost:8080/%{VARIABLE}
ProxyPassReverse /%{VARIABLE} http://localhost:8080/%{VARIABLE}

Any sugestions will be great...
Thanks!

Fabricio.









_______________________________________________________
Yahoo! Acesso Gr�tis - Internet r�pida e gr�tis.
Instale o discador agora! http://br.acesso.yahoo.com/

---------------------------------------------------------------------
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


---------------------------------------------------------------------
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


Yahoo! Messenger NEW - crystal clear PC to PC calling worldwide with voicemail --0-1631566334-1119114344=:99955--