GavinW_29074
Apr 16, 2012Nimbostratus
Random HTTPS Redirects?!?!
Hi there,
I'm starting to configured some services on the F5 which support HTTP. Prior to this, all our services have been over HTTPS.
However I'm having some issues with random HTTPS redirects creeping in, which causes the connection to be rejected.
An example VIP config is:
(/Common)(tmos) list /ltm virtual GABStaging_RPG.app/rpg.go-aheadstaging.card.co.uk_http
ltm virtual X_RPG.app/rpg.x.card.co.uk_http {
app-service /Common/X_RPG.app/X_RPG
destination 172.16.6.115:http
ip-protocol tcp
mask 255.255.255.255
profiles {
Caching_RPG { }
HTTP_Rewrite { }
oneconnect { }
stream { }
tcp {
context clientside
}
tcp-lan-optimized {
context serverside
}
wan-optimized-compression { }
}
rules {
ProxyPass
SplunkHTTP
CacheControl
CatchErrors
HeaderStripping
MaintenancePage
HandleErrors
NameVHost
}
snat automap
vlans-disabled
}
A request to this VIP returns: curl -ik http://postgateway.x.card.co.uk/Gateway-web
HTTP/1.1 301 Moved Permanently
Location: https://postgateway.x.card.co.uk/Gateway-web/
Content-Type: text/html; charset=iso-8859-1
Connection: close
Vary: Accept-Encoding
If I connect directly to the back-end application server I don't get redirected to HTTPS...
So the only place I can think this is being introduced is in the ProxyPass iRule, as that's the main rule that responds to the client...
Any ideas????
Cheers
Gavin