DevCentral Groups
   
You are here: Community > Group Details > Oracle / F5 Solutions

Get Connected with DevCentral

Sign up and Join this Group today!

Connect with your peers with the click of a button. Become a member of this group to post questions, sign up for notifications, provide comments, answer questions, access downloads and receive lots of other great documentation relevant to your interests. Connect with your community today!

  

Group Details

Oracle / F5 Solutions

F5 DevCentral Topic Group dedicated to open discussion and collaboration related to the integration between and deployment of F5 and Oracle software solutions.
Oracle / F5 Solutions
Upcoming Events
There are no events currently connected to this group. Click here to search all F5 Events.

Having trouble posting to this forum? Click the "Join Group" button above to get access!

Rewrite rules introduces HTTPS for Weblogic
Last Post 05/20/2010 03:39 PM by mlroot. 4 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
Please login or join DevCentral to post a reply.
 
PrevPrev NextNext
Author Messages
mlroot
mlroot
Post Count: 5
New Member


--
05/14/2010 09:21 AM  

Has anyone come across this issue? We are trying to rewrite URIs to weblogic via an LTM with this rule:

when HTTP_REQUEST {
if { [HTTP::host] equals {f51}} {
HTTP::uri {http://websiteB:8040/path/}
}
}


the  rewrite works fine, except that (when I analyzed it with wget) it rewrites using https instead of http. I know the common requirement is to divert http to https but I did NOT request https; http is what I have in my rule:

wget -S  http://f51/
--2010-05-14 10:01:08--  http://f51/
Resolving f51... 10.0.0.0
Connecting to f51|10.0.0.0|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 302 Moved Temporarily
  Date: Fri, 14 May 2010 16:01:08 GMT
  Location: https://f51/errorpages/404.shtml
  Content-Type: text/html
  Set-Cookie: JSESSIONID=LtzGJxBvhL7N7pBRnphPC9tCljLXzn6P1MJ0bpcbhYjk6r2Lp52P!-131925596; path=/
  Connection: Close
  Set-Cookie: BIGipServerpool1=753416202.17955.0000; path=/
Location: https://f51/errorpages/404.shtml [following]
--2010-05-14 10:01:08--  https://f51/errorpages/404.shtml
Connecting to f5westest1|10.0.0.0|:443... connected.
Unable to establish SSL connection.

Any help would be appreciated.

hoolio
hoolio
Post Count: 11053
MVP - 9


--
05/17/2010 09:03 AM  
Hi,

Based on the iRule you've posted, I don't see how LTM could be telling the client to make a request via HTTPS. Do you have rewrite redirects enabled on the HTTP profile enabled on the VS?

In the iRule you're rewriting the URI to an absolute version regardless of what URI the client requested. Also, you're specifying a port in the URI. This wouldn't change what IP:port LTM load balances the request to--just what the client is telling the web server it's making a request to.

What are you actually trying to do with the URI rewrite?

Aaron

mlroot
mlroot
Post Count: 5
New Member


--
05/19/2010 11:39 AM  

Thanks for your response.
Yes, I have rewrite redirects enabled.
I am simply trying to hide the weblogic URI http://websiteB:8080/app behind a simple uri http://websiteA 

Chris Akker
Chris Akker
Post Count: 27
Active Member


--
05/20/2010 09:51 AM  
If you disable the rewrite redirects in the http profile, the LTM will not change the protocol from http to https when the response from the server is 30x. This is done in the http profile under Settings, there is a checkbox - so check to make sure this is set to None. That should solve your http to https issue.

In version 9 and 10, the help explains this as:

Redirect Rewrite
Specifies whether the system rewrites the URIs that are part of HTTP redirect (3XX) responses. The default is None ( in Version 9.4 ).

None: Specifies that the system does not rewrite the URI in any HTTP redirect responses.

All: Specifies that the system rewrites the URI in all HTTP redirect responses.

Matching: Specifies that the system the URI in any HTTP redirect responses that match the request URI.

Nodes: Specifies that if the URI contains a node IP address instead of a host name, the system changes it to the virtual server address.

As far as the rest of your iRule, looks like you are trying to change the Hostname. See the examples on DevCentral iRules:

http://devcentral.f5.com/wiki/default.aspx/iRules.HomePage






mlroot
mlroot
Post Count: 5
New Member


--
05/20/2010 03:39 PM  
Thanks, Chris. That explains and takes care of the https.
For the rest, I am simply trying to rewrite the URI to that of the backend server, port and path where the service is actually hosted.
Please login or join DevCentral to post a reply.

  

93,050 Members in 191 Countries and Growing!

Join DevCentral Today!

About DevCentral

F5 DevCentral is your source for the best technical documentation, discussion forums, blogs, media and more related to application delivery networking.

So dive in, meet your peers, and get familiar with DevCentral. We hope it makes your job easier and helps you get more from your F5 investment. If new to DevCentral, check out the Getting Started section. And if you have any problems, or think something could be easier to use, let us know.

Got It !

We've received your comment and transmitted it directly to DevCentral HQ.

Thanks for taking time to let us know what's on your mind. At DevCentral | Community Matters!

Get In Touch With Us

Have questions, suggestions or just want to get something off your chest?

Use our handy form below to Direct Connect with DevCentral Mission Control.

Send Us Feedback      or