Forum Discussion
integracion_s21
Nimbostratus
Jun 14, 2010Force HTTP communication
Greetings,
We have configured two virtual servers: VS_App1 : 443 & VS_App1 : 80
There is one iRule applied to both, that checks the URI and according to it, selects the corresponding pool. For ...
integracion_s21
Nimbostratus
Jun 14, 2010Greetings Aaron,
I have modified my iRule following part of the code that you gave me and now it works. This is an example of my iRule:
Before:
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/resource-app1/*" {
HTTP::header replace "Host" "resource-app1.domain1.com"
pool pool_resource-app1.domain1.com
log local0. "Proxied redirection to resource-app1.domain1.com [HTTP::uri]"
}
}
}After:
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/resource-app1/*" {
HTTP::header replace "Host" "resource-app1.domain1.com"
if { [TCP::local_port] equals 443 } {
set ssl_disable_cmd "SSL::disable serverside"
eval $ssl_disable_cmd
log local0. "Local TCP Port [TCP::local_port]-LB Server Port[LB::server port]"
}
pool pool_resource-app1.domain1.com
log local0. "Proxied redirection to resource-app1.domain1.com [HTTP::uri]"
}
}
}Thank you very much!
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