Forum Discussion

John_131301's avatar
John_131301
Icon for Nimbostratus rankNimbostratus
Jun 13, 2014

Append FQDN to all request

I am trying to write an iRule to append the FQDN to https request. My concern isn't a user receiving cert warning etc. I can get it to work the following way:

 

http://server1 gets redirected to https://server1.mydomain.com

 

https://server1 does not get redirected to https://server1.mydomain.com it stays as https://server1

 

current iRule: when HTTP_REQUEST { HTTP::redirect https://mydomain.com[HTTP::uri] }

 

iRule is applied to the virtual server running on port 80 I use to forward requests to virtual server setup to run on port 443.

 

How can I get it to append fqdn to both http and https requests?

 

1 Reply

  • You should need one iRule applied to both http and https virtual servers, the same iRule. Can you post the full text of your iRule? I see no if clause there? you should be redirecting only if Host record is not already the expected one, right?