Forum Discussion
Two way re-write like a bluecoat !
Hi,
I need to be able to do the following;
Client connects to http://aserver.com/
I need to re-write this to
http://bserver.com/folder/
I have had a fiddle with ProxyPass v10.9 and I think I am getting the first part done
What they want is nothing to change in the client browser, at the moment I can see that the URI that is getting back to the client has the foldername added and then it is making a request is as follows;
aserver.com/folder/some_uri_or_other
and fails.
So I need to rewrite the host and uri on the way into the backend server and then re-write it back on the way to the client if that makes any sense.
LTM v.11.1 Any assistance greatly appreciated.
Here is a sample of what gets done on, I think it is a bluecoat
I dont need to do anything with SSL all in the clear.
define action application_name
;;Rewrite Incoming urls - FORWARD EXTERNAL URL TO INTERNAL SERVER
rewrite( url, "xyz.abc-hello.domain.com(.*)", "somethingelse.doamin.co.uk/foldername$(1)" ) (*the hostnames are different)
rewrite( request.header.Referer, ""xyz.abc-hello.domain.com(.*)", "somethingelse.doamin.co.uk/foldername$(1)" )
;;Rewrite contents of pages
transform application_name
;;Rewrite internal urls to the external ones on responses
rewrite( response.header.set-cookie, "(.*)domain.co.uk(.*)", "$(1)domain.com$(2)")
end
define url_rewrite application_name
rewrite_url_substring "xyz.abc-hello.domain.com" "somethingelse.doamin.co.uk/foldername"
end url_rewrite medbens_uat_nhs_portal
- forwarding config sends rewritten requests to the appropriate backed server(s).
proxy.address=x.x.x.x
server_url.domain=//somethingelse.doamin.co.uk/foldername/ forward(x.x.x.x_80) forward.fail_open(no)
proxy.port=443 forward(x.x.x.x_80) forward.fail_open(no)
- Kevin_StewartEmployeeThis should all be possible with ProxyPass. Can you post what you have so far?
- George_32239NimbostratusHi Kevin,
- George_32239NimbostratusHello (not quite Monday !)
- George_32239Nimbostratusignore my typo's on the domains they should be www.firstdomain.com:443/ := seconddomain.co.uk/folder all the way through
Recent Discussions
Related Content
* 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