Forum Discussion
DM_5174
Nimbostratus
Jun 21, 2007ALMOST THERE BUT NOT YET!!! HELP
The problem here is: I have two virtual servers called
"pool1_80" and "pool2_443"
Virtual server "Pool1_80" has a iRule for the httpS redirect if coming in over port 80. After encrypting with the client SSL, it sends it to servers 10.1.50.11 or 10.1.50.12 in the pool respectfully.
However, if a user manually adds "/site1" after getting redirected into httpS, I get an http 1.1 10.4.5 404 not found error. Also If they successfully logged in the
session and click on a link in the page referencing "/site1" they should get redirected to another "www_apache" pool containing servers 10.1.50.12 and 10.1.50.13 while maintining the SSL connection still going through the "pool1_80" virtual server...The apache server is looking for the connection
and session that was passed off from the first pool. If it detects that the session didn't orginate from the pool2_443, it will not serve the
"/site1" page.
I tried to add the second iRule to the "www_apache" pool listening on port 80 and creating another "www_apache_ssl" with the same servers listening on port 443 as but it still does not work.
Please help.
irule for HTTP - to HTTPS redirect for VS "pool1_80"
when HTTP_REQUEST {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
irule for when a user connects to https://www.mysite.com/ and adds "site1" etc..
this is not redirecting to the apache servers. It looks like the URI is not found by the first redirect/Virtual server that the connection orginally came in on.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/site1*" -
"/site2*" -
"/site3*" -
"/site4*" {
pool WWW_APACHE
}
}
}
- Colin_Walker_12Historic F5 AccountI'm a little unclear about what it is you're trying to do here. I've read through this several times and I keep getting lost somewhere around the redirection from the HTTPS to HTTP and back and...yeah.
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