Forum Discussion
Brian_Goldberg_
Nimbostratus
Jul 30, 2007SSL to SSL redirection fails
I'm trying to create an iRule to redirect one URI to another. I need to redirect this URI:
www.abc.com/EPN
to:
www.abc.com/Members/EPN.aspx
I created this iRule
when HTTP_REQUEST {
if { [HTTP::uri] equals "/EPN" } {
HTTP::redirect "https://www.abc.com/Members/EPN.aspx"
}
My problem is that when I go to the page "www.abc.com/EPN" my browser gives me a "Server Reset" notice. I think something about the SSL is causing trouble.
Does anyone have any solutions?
5 Replies
- kckirwan_49724
Nimbostratus
My .02
Another option that has worked for me in the past is the ends_with stmnt instead of equals. Unless I'm mistaken you won't match with the stmnt you have coded above.
ie.
when HTTP_REQUEST {
if {[HTTP::uri] ends_with "EPN"} {
HTTP::redirect "https://www.abc.com/Members/EPN.aspx"
}
Hope that helps!
Kevin - Deb_Allen_18Historic F5 AccountUsually a server reset is because the service requested is not running.
Can you connect to the URL https://www.abc.com/Members/EPN.aspx without a problem?
/deb - Brian_Goldberg_
Nimbostratus
The service is running.
I have a Virtual Server created on port 443 with an SSL cert and everything. You can type https://www.abc.com/Members/EPN.aspx and go right to the page.
/Brian - Deb_Allen_18Historic F5 AccountI'm getting a RST on the SYN when I browse to that URL. You will need to figure out why the connection request is rejected. Either LTM is not configured correctly, or something between is blocking the request.
You can test from the LTM command line using cURL:
or if your LTM can't resolve the name:curl -k https://www.abc.com/Members/EPN.aspx
If you receive the expected page rather than a RST, then you know the LTM config is OK, and will then need to test from a hop further away until you find the point of failure.curl -k https:///Members/EPN.aspx
HTH
/deb - Brian_Goldberg_
Nimbostratus
/deb
Sorry I didnt mention this before. The URL www.abc.com is a phony name. My client does not allow us to make message board post that indicate their technology.
I went ahead and just re-wrote the URI going to the server. It works (but the client doesnt see it because it happens between the F5 and the web server).
/brian
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
