Viversector_326
Jul 05, 2017Nimbostratus
Remove port number from URL
Hello,
I have a VIP running on port 443 which connects to our back end web servers running port 80. I have the following irule setup to change URLs from http to https. The problem I have is some of the URLs in the pages have port 80 appended to the end of them. Does anyone know how I can stop this from occurring?
For example, when I inspect the page when it's loaded via the VIP I see some URLs point to https://domain.com:80/style.css when it should be https://domain.com/style.css
Irule is below
when HTTP_REQUEST {
STREAM::disable HTTP::header remove "Accept-Encoding" } when HTTP_RESPONSE {
if {[HTTP::header value Content-Type] contains "text"}{ STREAM::expression {@@} STREAM::enable
}
}