Forum Discussion
Tomasz_93254
Feb 18, 2011Nimbostratus
Irule strange problem
I have the following Irule on my LTM F5:
when HTTP_REQUEST {
set subpath [HTTP::uri]
if {[HTTP::host] equals "aaa.co.uk"} { HTTP::respond 301 Location "http://www.aaa.co.uk...
Tomasz_93254
Feb 21, 2011Nimbostratus
I have tried this and the script is not working either. NOnetheless I think I found the root of the problem.
When I did debugging:
------
when HTTP_REQUEST {
log local0. " URI: [HTTP::uri], Host: [HTTP::host] ,Path: [HTTP::path]"
------
Sample log shows:
URI: http://www.bbb.com/aaaa, Host: ,Path: http://www.bbb.com/aaaa
---
HTTP::host for some reason is not set, which is most probably the reason none of the if statements were matched.Any idea why HTTP::host is empty? How can I obtain the host which should be www.bbb.com?
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