Forum Discussion
ucgwebmaster_95
Nimbostratus
Jul 08, 2008Using Virtual Server for http to https for certain pages
I've tried many suggestions but to no avail. I have to Virtual servers. One on port 80 and one on port 443. I need to have traffic routed to the 443 virtual server for 4 aspx pages.
ex:
http://www.helpme.com/
login.aspx
myaccount.aspx
register.aspx
/store/checkout.aspx
I was looking at a post which mentioned using the virtual command to direct traffic to a particular virtual server.
Can anyone please help me with an example here? I tried using a http class profile but to no avail. I tried using the Irule below but also it doesn't work. I am not sure what else to do here. Any help is greatly appreciated.
when HTTP_REQUEST {
switch -glob { [HTTP::host][HTTP::uri] }
{
"http://www.helpme.com/login.aspx"
{
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
"http://www.helpme.com/myaccount.aspx"
{
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
"http://www.helpme.com/store/CheckOut.aspx"
{
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
"http://www.helpme.com/Register.aspx"
{
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}
}
13 Replies
- ucgwebmaster_95
Nimbostratus
Did you receive my email Aaron? - hoolio
Cirrostratus
Yep. Replied at 11pm GMT. I just resent it.
Aaron - ucgwebmaster_95
Nimbostratus
Colin / Aaron,
I've yet to get this to work. This one leads me to believe I have something setup wrong with my VIP's. I thought this should be pretty straight forward, but nothing ever is.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
