Forum Discussion
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
- Mohamed_Lrhazi
Altocumulus
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?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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