Forum Discussion
fujisen
Jan 11, 2011Nimbostratus
http to https irule
http to https redirect irule question
10.1.1.2 vip created on 80 andd 443
both use pool member 172.1.1.1 on 80
VIP on 80 has simple rediret irule http to https in place
VIP on 443 has client SSL cert installed.
redirect not working, can you guys advice some basic checks please..
- Chris_MillerAltostratusCan you paste the iRule you're using?
- fujisenNimbostratuscopied below irule in use,
- hooleylistCirrostratusYou'll need an HTTP profile on the port 80 virtual server in order to use that iRule to redirect all HTTP traffic to HTTPS. You wouldn't want to apply the same iRule to the 443 virtual server or you'd trigger infinite redirects to itself. If you want to have TMM parse the traffic as HTTP you could add an HTTP profile to the port 443 virtual server. Some specific examples of why you'd want to do this are:
- fujisenNimbostratusThanks for the info on http profile,
- hooleylistCirrostratusIf you're using the http to https redirect rule on the HTTP virtual server, I expect it's working and that you're getting the login page via the HTTPS virtual server from the application. You could remove the pool from the HTTP virtual server to make this more intuitive. You could also use a browser plugin like HttpFox for Firefox or Fiddler to check the LTM response on the HTTP virtual server.
- fujisenNimbostratusyour correct, i missed to notice https on login prompt but URL was still on http !
- Jessica_42876Nimbostratushi:
- Michael_YatesNimbostratusWhat do you mean by this? Could you better explain the problem that you are having?
- Jessica_42876NimbostratusThe iRule intend to deploy an e-mail server and as I apply the iRules all I get is the first page if I try to log in does not
- Michael_YatesNimbostratusThat makes more sense.
when HTTP_REQUEST { HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri] log local0. "HTTP to HTTPS Redirect - Client [IP::client_addr]" }
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects