Forum Discussion
dacrud_18985
Nimbostratus
Jun 24, 2008preserve hostname
Hi all,
I need to preserve the hostname to a back end apache server so that when the request gets passed through, the apache server can still pick it up through a virtualhost name. Is ...
Deb_Allen_18
Jun 25, 2008Historic F5 Account
The hostname requested by the client should already be passed in the Host header, and LTM will not modify or remove it unless explcitly configured to do so.
You can test what LTM sees with a simple iRule:
when HTTP_REQUEST {
log local0. "HTTP Host requested by [IP::client_addr]: [HTTP::host]"
}
It will produce a log line in the LTM/Local Traffic log that looks like this for each request:
HTTP Host requested by 192.168.1.12: www.domain.com
The hostname reflected there should be what Apache sees.
HTH
/deb
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