You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Petr Hracek <ph...@gmail.com> on 2009/09/22 12:55:36 UTC
[users@httpd] Problem with settings of Proxy
Hello *,
sorry for bother you with this question but I would like to ask you if it's
possible to setup Proxy as is mentioned below.
In the my configuration file of Apache 2.2.10 is for setting up my
application.
ProxyPassReverse /myapplication/
http://127.0.0.1:10000/<http://127.0.0.1:10123/>
ProxyPassReverse /myapplication/
http://localhost:10000/<http://localhost:10123/>
RewriteRule ^/myapplication$ http://127.0.0.1:10000/<http://127.0.0.1:10123/>[P]
RewriteRule ^/myapplication/(.*)
http://127.0.0.1:10000/$1<http://127.0.0.1:10123/$1>[P]
It is working correctly without problem.
I would like to add another proxy but I do not know how?
When to user will start URL with https://<ipaddress>/wbm_<new_ip/
then new_ip should be called in the new window so that https://<new_ip>/
will be opened.
RewriteRules are:
RewriteRule ^/wbm_(.*)$ http://$1 [P]
RewriteRule ^/wbm_(.*)/(.*) http://$1/$2 [P]
Is it possible to write down to the configuration file of apache following:
ProxyPassReverse /wbm_(.*)/ http://$1/
Or is there any other way how to do that?
Thank you in advance
Re: [users@httpd] Problem with settings of Proxy
Posted by Petr Hracek <ph...@gmail.com>.
Are there any steps how to dynamically make proxy in Apache?
Let say the I would like to connect to the other servers using proxy.
Servers has DHCP IP addresses and are shown in a web page of Apache2.
One time there are tree servers available and another time there are 10
servers available.
I would like to create Proxy in Apache2 so that
when I enter to the link https://<ipaddress>/wbm_<ip2>/
then new window will be opened with URL https://<ip2>/
Important is that Apache2 should not be restarted.
Is there any way how to do that dynamically?
thank you in advance
Petr
2009/9/22 Petr Hracek <ph...@gmail.com>
> Could you please help me how to configure apache so that apache2.2 will
> work
> for my case?
>
> When to user will start URL with https://<ipaddress>/wbm_<new_
> ip/
> then new_ip should be called in the new window so that https://<new_ip>/
> will be opened.
>
> RewriteRules are:
> RewriteRule ^/wbm_(.*)$ http://$1 [P]
> RewriteRule ^/wbm_(.*)/(.*) http://$1/$2 [P]
>
> Is it possible to write down to the configuration file of apache following:
> ProxyPassReverse /wbm_(.*)/ http://$1/
>
> How to configure it over ProxyPass and ProxyPassReverse?
>
> thank you in advance
> Petr
> 2009/9/22 Tom Evans <te...@googlemail.com>
>
> On Tue, 2009-09-22 at 14:59 +0200, Petr Hracek wrote:
>> > Unfortunatelly I have found that we have a system where is installed
>> > apache 1.3.
>> > It would be good to have solution for both. Apache 1.3 and Apache 2.2
>> >
>> > regards
>> > Petr
>>
>> If you take 1.3 and add the missing features, then you would have
>> 2.2 ...
>>
>> If you really can't update the apache 1.3 to apache 2.2, then you can
>> run apache 2.2 in front of 1.3, and proxy to it. Apache like this can be
>> very lightweight and effecient, eg using event MPM etc.
>>
>> Cheers
>>
>> Tom
>>
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>
>
Re: [users@httpd] Problem with settings of Proxy
Posted by Petr Hracek <ph...@gmail.com>.
Could you please help me how to configure apache so that apache2.2 will work
for my case?
When to user will start URL with https://<ipaddress>/wbm_<new_ip/
then new_ip should be called in the new window so that https://<new_ip>/
will be opened.
RewriteRules are:
RewriteRule ^/wbm_(.*)$ http://$1 [P]
RewriteRule ^/wbm_(.*)/(.*) http://$1/$2 [P]
Is it possible to write down to the configuration file of apache following:
ProxyPassReverse /wbm_(.*)/ http://$1/
How to configure it over ProxyPass and ProxyPassReverse?
thank you in advance
Petr
2009/9/22 Tom Evans <te...@googlemail.com>
> On Tue, 2009-09-22 at 14:59 +0200, Petr Hracek wrote:
> > Unfortunatelly I have found that we have a system where is installed
> > apache 1.3.
> > It would be good to have solution for both. Apache 1.3 and Apache 2.2
> >
> > regards
> > Petr
>
> If you take 1.3 and add the missing features, then you would have
> 2.2 ...
>
> If you really can't update the apache 1.3 to apache 2.2, then you can
> run apache 2.2 in front of 1.3, and proxy to it. Apache like this can be
> very lightweight and effecient, eg using event MPM etc.
>
> Cheers
>
> Tom
>
>
> ---------------------------------------------------------------------
> 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
>
>
Re: [users@httpd] Problem with settings of Proxy
Posted by Tom Evans <te...@googlemail.com>.
On Tue, 2009-09-22 at 14:59 +0200, Petr Hracek wrote:
> Unfortunatelly I have found that we have a system where is installed
> apache 1.3.
> It would be good to have solution for both. Apache 1.3 and Apache 2.2
>
> regards
> Petr
If you take 1.3 and add the missing features, then you would have
2.2 ...
If you really can't update the apache 1.3 to apache 2.2, then you can
run apache 2.2 in front of 1.3, and proxy to it. Apache like this can be
very lightweight and effecient, eg using event MPM etc.
Cheers
Tom
---------------------------------------------------------------------
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
Re: [users@httpd] Problem with settings of Proxy
Posted by Petr Hracek <ph...@gmail.com>.
Unfortunatelly I have found that we have a system where is installed apache
1.3.
It would be good to have solution for both. Apache 1.3 and Apache 2.2
regards
Petr
2009/9/22 Nick Kew <ni...@webthing.com>
> Petr Hracek wrote:
>
>> Hello *,
>>
>> sorry for bother you with this question but I would like to ask you if
>> it's possible to setup Proxy as is mentioned below.
>>
>> In the my configuration file of Apache 2.2.10 is for setting up my
>> application.
>> ProxyPassReverse /myapplication/ http://127.0.0.1:10000/ <
>> http://127.0.0.1:10123/>
>> ProxyPassReverse /myapplication/ http://localhost:10000/ <
>> http://localhost:10123/>
>> RewriteRule ^/myapplication$ http://127.0.0.1:10000/ <
>> http://127.0.0.1:10123/> [P]
>> RewriteRule ^/myapplication/(.*) http://127.0.0.1:10000/$1 <
>> http://127.0.0.1:10123/$1> [P]
>>
>
> Why RewriteRule rather than ProxyPass? You believe in
> complicating things?
>
> Is it possible to write down to the configuration file of apache
>> following:
>> ProxyPassReverse /wbm_(.*)/ http://$1/
>>
>
> Hmm, now that looks like a reason for RewriteRule. You'd use
> that to set an env var to use with ProxyPassReverse "interpolate".
>
> --
> Nick Kew
>
> ---------------------------------------------------------------------
> 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
>
>
Re: [users@httpd] Problem with settings of Proxy
Posted by Nick Kew <ni...@webthing.com>.
Petr Hracek wrote:
> Hello *,
>
> sorry for bother you with this question but I would like to ask you if
> it's possible to setup Proxy as is mentioned below.
>
> In the my configuration file of Apache 2.2.10 is for setting up my
> application.
> ProxyPassReverse /myapplication/ http://127.0.0.1:10000/
> <http://127.0.0.1:10123/>
> ProxyPassReverse /myapplication/ http://localhost:10000/
> <http://localhost:10123/>
> RewriteRule ^/myapplication$ http://127.0.0.1:10000/
> <http://127.0.0.1:10123/> [P]
> RewriteRule ^/myapplication/(.*) http://127.0.0.1:10000/$1
> <http://127.0.0.1:10123/$1> [P]
Why RewriteRule rather than ProxyPass? You believe in
complicating things?
> Is it possible to write down to the configuration file of apache following:
> ProxyPassReverse /wbm_(.*)/ http://$1/
Hmm, now that looks like a reason for RewriteRule. You'd use
that to set an env var to use with ProxyPassReverse "interpolate".
--
Nick Kew
---------------------------------------------------------------------
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