Forum Discussion
Dinesh_104024
Sep 26, 2010Nimbostratus
Would like to change the server side host name
We would like to have an i-rule which will change the server side url i.e.user will access the site using hostname like www.xyz.com and when request hit the server it should get rewrite with www.xyz....
hooleylist
Sep 27, 2010Cirrostratus
It sounds like the TCP layer is working correctly, but the virtual host on the web server is configured only for www.xyz.com:7080. You can have LTM insert this using an iRule like:
when HTTP_REQUEST {
Check if host header doesn't end with :7080 already
if {not ([HTTP::host] eq "www.xyz.com:7080")}{
Replace the host header
HTTP::header replace Host "www.xyz.com:7080"
}
}
Aaron
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