Forum Discussion
Reverse Proxy Redirect
Simple answer is you can change values for the host and the path before the request is passed on to the backend servers. For example :
when HTTP_REQUEST {
HTTP::header replace "Host" "locations.domain.com"
HTTP::path "/"
}This would transparently rewrite whatever you had before to http://locations.domain.com/ .
But, this might cause your application to misbehave. The reason for this is that your app server doesn't know about the rewriting that's happening, and so it will generate HTML code and cookies and such based on what it sees, which is different from what the client sees. So for example, your app server could generate a cookie for locations.domains.com but the client still sees the old name . Therefore the client will not try to re-use the cookie because from its point of view the cookie does not match the site name.
So in this case you will need to use a Rewrite Profile (Profiles --> Services --> Rewrite) to try to rewrite everything that's coming in and back out until your app works correctly. This could be time consuming unfortunately but I don't know of a better way to do it. Look at this piece of documentation here about URI translation :
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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