Re: Running script from configuration file of Apache2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is there any possibility how to work without RewriteRule
with turn on RewriteRule?

thank you in advance
Petr

2010/4/21 Tom Evans <tevans.uk@googlemail.com>
On Wed, Apr 21, 2010 at 11:24 AM, Petr Hracek <phracek2@xxxxxxxxx> wrote:
> Hello *,
>
> I would like to ask you on the one interesting think:
> I need to proxy the requests to the specified url to a dynamically generated
> address.
> Instead of:
> <Location "/CAP/">
>     ProxyPass  http://192.0.2.25:8080/CBAdmin/
>     ProxyPassReverse    http://192.0.2.25:8080/CBAdmin/
>     ProxyPassReverseCookiePath /CBAdmin /CAP
>     Order Allow,Deny
>     Allow from all
> </Location>
> There should be something like that instead of IP address there will
> be a script like generate_forward_address
>
> I think that the mod_macro is not helpful here. I also cannot use
> RewriteRule [P] which has more possibilities because I need the
> ProxyPassReverse as well.
>
> Do you have any idea how to solve it?
>

That is incorrect; ProxyPassReverse does not require ProxyPass, and is
more than happy to work with RewriteRule ... [P].

You can't do it with scripts, but you should be able to do it with a
RewriteRule, and multiple ProxyPassReverse, one for each backend you
could redirect to.

Actually you could do it with a script, using a program map to
generate the rewrite. I've never used this myself, it looks like it
might impact performance a bit to me.

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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




--
Best Regards / S pozdravem
Petr Hracek

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux