Forum Discussion
Etienne_28122
Nimbostratus
13 years agoforward alternate hostname to internal server
I have a simple problem
My external DNS record if different to my internal DNS. I also host multiple site on the same web server using hostname to differentiate between the sites.
...
What_Lies_Bene1
Cirrostratus
13 years agoAs you want to rewrite the host rather than the URI, your only option here is an iRule I'm afraid. If you wanted to redirect or rewrite the URI a HTTP Class would have done it.
You'd need a rule like so;
when HTTP_REQUEST {
if { [string tolower [HTTP::header value Host]] equals "publicfqdn1" } {
HTTP::header replace "Host" internalfqdn1
return }
elseif { [string tolower [HTTP::header value Host]] equals "publicfqdn2" } {
HTTP::header replace "Host" internalfqdn2
return }
}
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