Forum Discussion
web server IIS v10
Hi
I am trying to make one IIS server behind F5 LTM. but it seems like bigIP does not do the redirection correctly and message keep coming on browser... "The page isn’t redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
My setup : template : microsoft_iis IIS web : win2016 v10
Ridirection: http-https redirectionSSL offloadiRULE
Codewhen HTTP_REQUEST {
if { ( [string tolower [HTTP::host]] eq "ab.test.xyz.com" ) && ( [HTTP::uri] eq "/") } {
HTTP::redirect "https://ab.test.xyz.com/rdweb/Pages/"
}
}
I have use this irule many times on other LInux webserver but not sure waht is wrong with IIS server ? is it a problem with IIS template used http template with no happiness ? Do you have any idea ?
/newbie
21 Replies
- Leonardo_Souza
Cirrocumulus
I don't see any problem with the iRule. I just tested in my lab, and works fine.
when HTTP_REQUEST { log local0. "URL = http://[HTTP::host][HTTP::uri]" if { ( [string tolower [HTTP::host]] eq "asm.lab.local" ) && ( [HTTP::uri] eq "/") } { HTTP::redirect "http://asm.lab.local/admin/" } } Mar 21 13:42:10 LABBIGIP1 info tmm4[20610]: Rule /Common/test1 : URL = http://asm.lab.local/ Mar 21 13:42:10 LABBIGIP1 info tmm4[20610]: Rule /Common/test1 : URL = http://asm.lab.local/admin/If you are redirecting from HTTP to HTTPS, you should have another virtual server to handle the HTTPS traffic. With or without clientssl profile, and serverssl, based in your setup.
- kunjan
Nimbostratus
Can you directly access https://ab.test.xyz.com/rdweb/Pages/ ?
- nyif5_225400
Nimbostratus
No its the same loop problem ...
- kunjan
Nimbostratus
So it's not the iRule. Is the backend IIS listening on 'https'?
Can you do a curl from the bigip ?
curl -k -vv https://ab.test.xyz.com/rdweb/Pages/ - nyif5_225400
Nimbostratus
Output attached !
- kunjan_118660
Cumulonimbus
Can you directly access https://ab.test.xyz.com/rdweb/Pages/ ?
- nyif5_225400
Nimbostratus
No its the same loop problem ...
- kunjan_118660
Cumulonimbus
So it's not the iRule. Is the backend IIS listening on 'https'?
Can you do a curl from the bigip ?
curl -k -vv https://ab.test.xyz.com/rdweb/Pages/ - nyif5_225400
Nimbostratus
Output attached !
Recent Discussions
Related Content
* 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