Forum Discussion
Mike_Singer_599
Jan 11, 2012Nimbostratus
Removing server header from http to https redirect
We have been asked to remove this by a client based on a pentest. I can find referernces to the noserver option in other posts but not the complete irule that incorrpates that w/ the redirected comma...
nitass
Jan 11, 2012Employee
can you try this?
[root@ve1023:Active] config b virtual bar list
virtual bar {
destination 172.28.19.79:80
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
HTTP::respond 302 noserver Location "https://[HTTP::host][HTTP::uri]"
}
}
[root@ve1023:Active] config curl -I http://172.28.19.79/test
HTTP/1.0 302 Found
Location: https://172.28.19.79/test
Connection: Keep-Alive
Content-Length: 0
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