You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Craig Sawyer <cr...@yahoo.co.uk> on 2005/06/18 19:05:44 UTC
[users@httpd] users-unsubscribe@httpd.apache.org
Ian Huynh <ia...@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 PCcalling worldwide with voicemail
Re: [users@httpd] users-unsubscribe@httpd.apache.org
Posted by Joshua Slive <js...@gmail.com>.
To unsubscribe from the list, you must mail to the address
users-unsubscribe@httpd.apache.org. Putting it in the subject line
doesn't do anything.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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