question mark in uri
2 TopicsIrule help need to remove the port before sending uri to server
Folks Need help here i am trying to remove port information before sending the uri with match keyword to server which listen on only port 80 example VIP 1.1.1.1:9443 NODE- 10.10.10.10:80 Client to VIP - request uri - https://abc.xyz.com:9443/loadWsSingleProvider/services/MaWSPo?wsdl catch here is we need to send entire URI to the server by removing the port only i am not able to get the proper irule for this , can somebody help me on this below is the irule i tried when HTTP_REQUEST { if { [string tolower [HTTP::uri]] contains "loadWsSingleProvider" } { HTTP::header replace Host "[string map {":9443" ""} [HTTP::header Host]]" pool POOL123 if { [active_members POOL123] equals 0 } { HTTP::redirect "https://abc.xyz.com" log local0. "POOL123 is down" } } }466Views0likes2CommentsBasic iRule to Redirect HTTP to HTTPS Custom URI with ? Mark is Failing
We have a site that is using vanity URLs that are being parsed to send them to particular branded sites. We are getting in a redirect loop. We believe it is because of a question Mark in the URI. The iRule is applied to the 80/HTTP virtual. HTTP Site URL/URL - http://www.site.com Redirect needed - https://www.site.com/product?customer1 Current iRule: when HTTP_REQUEST { Redirects to HTTPS HTTP::redirect "https://www.site.com/product?customer1" } In FireFox we are seeing the redirect going to - https://www.site.com/product/?customer1 As you can see the / is being added, which is causing a redirect loop. It's like the ? mark is getting misinterprited. I tried to create an httpclass to do the site thing and in looking at the configuration from tmsh, it is not interpriting the ? correctly. We were on Cisco CSS and this was not an issue. ltm profile httpclass www.site.com-http-rdr { defaults-from httpclass pool none redirect "https://www.site.com/product\?customer1" } Customers are complaining since the migration so any help would be greatly appreciated.220Views0likes3Comments