Forum Discussion
tdoc_90806
Nimbostratus
Dec 16, 2008Sharepoint 2007 Problem
Hi,
I am publishing Sharepoint using an external F5 (where SSL terminates), ISA2006, then via another internal F5, Load Balancing IIS server. I have followed the F5 deployment guide and I am able to publish the site fine. The problem I get is when I click - "New Group" or "New User" from the 'People & Groups' section of SP.
This request just times out and Page cannot be displayed.
If I bypass F5 and just go straight to IIS, it works fine.
I have an HTTP profile configured as per the deployment doc and Cookie persistence.
My iRule to redirect http - https is per the install doc:
when HTTP_REQUEST {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
When the request times-out, the url displayed eventually changes to:
http://sitename:port/subsitename/_layouts/newgrp.aspx
whereas the normal url is https://sitename/subsitename etc.
so it seems as though the http request is not being redirected properly(?)...
If anyone could help with this I would really appreciate it!!!
Many Thanks
- hoolio
Cirrostratus
Hi,when HTTP_REQUEST { log local0. "[IP::client_addr]:[TCP::client_port]: Redirecting new request from [HTTP::host][HTTP::uri] to https" Check if Host header value has a length if {[string length [HTTP::host]]}{ Redirect to the requested host and URI (minus the port if specified) HTTP::respond 301 Location https://[getfield [HTTP::host] ":" 1][HTTP::uri] } else { Redirect to VIP's IP address HTTP::respond 301 Location https://[IP::local_addr][HTTP::uri] } }
- tdoc_90806
Nimbostratus
Hi, thanks for replying so soon.. - hoolio
Cirrostratus
I would expect that you can configure aliases within Sharepoint to tell the app to reference itself using the public hostname without the specific port. If that's not possible, you can use a stream profile and iRule to rewrite the references to :8081 with nothing. To use the example rule, add a blank stream profile to the VIP and create a custom HTTP profile with Response Chunking set to Rechunk.when HTTP_REQUEST { Disable the stream filter by default STREAM::disable } when HTTP_RESPONSE { Rewrite the response content Check if response type is text if {[HTTP::header value Content-Type] contains "text"}{ Replace any http:// instance with https://, unless the original string is http://example.com STREAM::expression "@http://example.com:8081@https://example.com@" Enable the stream filter for this response only STREAM::enable } Rewrite the response headers if {[HTTP::is_redirect]}{ HTTP::header replace Location [string map "http://example.com:8081 https://example.com" [HTTP::header value Location]] } }
- tdoc_90806
Nimbostratus
Hi
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