Forum Discussion
ABHAY_101908
Nimbostratus
Nov 04, 2009ProxyPass Irule --- reverse proxy
Dear all:
I am trying to replace my existing reverse proxy functionality from my apache to BIG-IP LTM.
Can any one help me out how to add the config in the proxypass v10 irule.
Below is my reverse proxy config:-
Where as 10.146.64.214 is the Virtual ip address in the apache reverse proxy.
ProxyPass /upso1/dar/ http://10.38.32.35/upso1/dar/
ProxyPassReverse /upso1/dar/ http://10.38.32.35/upso1/dar/
ProxyPass /upso1/data/ http://10.38.32.35/upso1/data/
ProxyPassReverse /upso1/data/ http://10.38.32.35/upso1/data/
ProxyPass /upso2/dar/ http://10.42.32.49/upso2/dar/
ProxyPassReverse /upso2/dar/ http://10.42.32.49/upso2/dar/
ProxyPass /upso2/data/ http://10.42.32.49/upso2/data/
ProxyPassReverse /upso2/dar/ http://10.42.32.49/upso2/data/
kindly guide me how i add above cofig in the proxypass v10 irule.
Regards,
Abhay
- hoolio
Cirrostratus
Hi Abhay, - hoolio
Cirrostratus
Can you try copying the most recent version of the v10 ProxyPass iRule? I made some minor edits to it recently that may have fixed this error you're encountering. - ABHAY_101908
Nimbostratus
Hi Aaron: - hoolio
Cirrostratus
The first request in the logs you posted was a request for /favicon.ico which didn't match any proxypass rule from the configuration datagroup. The second request was for /bpso/dar/ which is not configured in the datagroup either. - fLyf5_21542
Nimbostratus
Hi all - hoolio
Cirrostratus
Hi Fly, - hoolio
Cirrostratus
Or if you're just trying to map requests to /directories/ to a separate pool, you could use an iRule like this:when CLIENT_ACCEPTED { Save the name of the VS default pool set default_pool [LB::server pool] } when HTTP_REQUEST { Check the requested URI switch -glob [HTTP::uri] { "/directories/*" { pool directories_pool } default { pool $default_pool } } }
- fLyf5_21542
Nimbostratus
The VS is configured with ip addeess 10.0.0.1 port 80. Pool members are listening on port 8443. - fLyf5_21542
Nimbostratus
Just to add, Is there anything to modify in the proxypass irule other than the datagroup - hoolio
Cirrostratus
I don't think you shouldn't need ProxyPass for this. By default (destination) address and port translation is enabled on the virtual server.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects