Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 97452 invoked from network); 16 Jun 2005 16:44:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jun 2005 16:44:20 -0000 Received: (qmail 72412 invoked by uid 500); 16 Jun 2005 16:44:08 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 72402 invoked by uid 500); 16 Jun 2005 16:44:07 -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 72388 invoked by uid 99); 16 Jun 2005 16:44:07 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from polaris.atos-infogerance.fr (HELO polaris.atos-infogerance.fr) (193.56.241.12) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 16 Jun 2005 09:44:07 -0700 Received: from minotaure.atos-infogerance.fr ([193.56.47.17]) by polaris.atos-infogerance.fr (8.12.10/8.12.10) with ESMTP id j5GGSR3t002312 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 16 Jun 2005 18:28:28 +0200 (MET DST) Received: from exchange2k301.gaia.fr (localhost.localdomain [127.0.0.1]) by minotaure.atos-infogerance.fr (8.12.8/8.12.8) with ESMTP id j5GGSOoW016031 for ; Thu, 16 Jun 2005 18:28:25 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Thu, 16 Jun 2005 18:28:27 +0200 Message-ID: <8C29B2F93BAE9047A906EF6D6F9C5D43306C5C@exchange2k301.gaia.fr> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] ProxyPass with variables... Thread-Index: AcVyDr9ZqTTce3UGSPi9GBeA5hiaVQAgC4UQAAAzZLA= From: =?iso-8859-1?Q?Axel-St=E9phane__SMORGRAV?= To: X-Virus-Checked: Checked Subject: RE: [users@httpd] ProxyPass with variables... X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N You probably get a redirection to http://localhost:8080, right? Add ProxyPassReverse / http://localhost:8080/ This will replace any redirection to http://localhost:8080/ with a = redirection to /. If that does not work, try to explain more thoroughly what the problem = is, i.e. exactly what URL it is trying to request, and join the relevant = lines from the access and error logs.=20 -ascs -----Original Message----- From: Fabricio Luiz Machado [mailto:soproman@yahoo.com.br] Sent: Wednesday, June 15, 2005 6:00 PM To: users@httpd.apache.org Subject: RE: [users@httpd] ProxyPass with variables... Thanks Ian, it works. But I can=B4t use it, because it loads an URL with '8080' port... :-( Are there another way ? regards, Fabricio. --- Ian Huynh escreveu: >=20 > you can use mod_rewrite to change the URL and proxy at the same time. >=20 > add these lines in your httpd.conf >=20 > LoadModule proxy_module modules/mod_proxy.so > LoadModule proxy_http_module modules/mod_proxy_http.so =20 > LoadModule rewrite_module modules/mod_rewrite.so >=20 > RewriteEngine on =20 > RewriteRule ^/(.*) http://localhost:8080/$1 [P,L] >=20 > and remove your ProxyPass, ProxyPassReverse directives >=20 > -----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... >=20 >=20 > Hi there! >=20 > I integrate Apache + JBOSS with mod_proxy and it=B4s working fine to = me. > Now, I will have a big application, for hundreds of different profile=20 > clients. >=20 > These clients must access the application with an URL like this: >=20 > http://app.mydomain.com/client1 > http://app.mydomain.com/client2 > http://app.mydomain.com/whatever >=20 > And I have to proxy this requests like this: >=20 > ProxyPass /client1 http://localhost:8080/client1 ProxyPassReverse=20 > /client1 http://localhost:8080/client1 >=20 > ProxyPass /client2 http://localhost:8080/client2 ProxyPassReverse=20 > /client2 http://localhost:8080/client2 >=20 > ProxyPass /whatever http://localhost:8080/whatever ProxyPassReverse=20 > /whatever http://localhost:8080/whatever >=20 > The problem, ist that I don=B4t want to manage this hundreds=20 > 'ProxyPass' > directives one by one, because it will hurts... >=20 > Is there a way to use variables to create an unique 'ProxyPass' ? > For example: > ProxyPass /%{VARIABLE} http://localhost:8080/%{VARIABLE} =20 > ProxyPassReverse /%{VARIABLE} http://localhost:8080/%{VARIABLE} >=20 > Any sugestions will be great... > Thanks! >=20 > Fabricio. >=20 > =20 > =20 >=20 >=20 >=20 > =09 > =09 > =09 > _______________________________________________________ > Yahoo! Acesso Gr=E1tis - Internet r=E1pida e gr=E1tis.=20 > Instale o discador agora! http://br.acesso.yahoo.com/ >=20 > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server=20 > 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 >=20 >=20 > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server=20 > 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 >=20 >=20 =09 =09 =09 _______________________________________________________ Yahoo! Acesso Gr=E1tis - Internet r=E1pida e gr=E1tis.=20 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 --------------------------------------------------------------------- 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