Forum Discussion
redirection and uri manipulation
The sharepoint server pages are working for internal users since they are able to resolve http://internet.ehsd.ds.contra-costa.org (internal private domain) or http://internet/....
But when I browse using https://64.166.146.224 which is public facing , the browser will browse most of the site's links in each page; however, there are two areas where my browser receives the original link of http://internet.ehsd.ds.contra-costa.org/....
when HTTP_REQUEST { HTTP::header replace Host "internet.ehsd.ds.contra-costa.org" } when HTTP_RESPONSE { log local0.info "we are in the response section" if { [HTTP::header is_redirect]} { log local0.debug "we got is_redirect header" HTTP::header replace Location "[string map -nocase {http://internet.ehsd.ds.contra-costa.org https://64.166.146.224 http://internet/ https://64.166.146.224/} [HTTP::header value Location]]" } }
- nitass
Employee
just wondering whether u also need stream profile or not. - nitass
Employee
sorry, this is repeated.
- ed_woo_26237
Nimbostratus
Thank you, I will look at that link you posted. I am not sure, but I believe I may need a Stream profile. - ed_woo_26237
Nimbostratus
Got a little closer after setting up a stream with source http://internet.ehsd.ds.contra-costa.orgtarget https://64.166.146.224 .
The links in the pages after logging in show that it points to the correct url such as
https://64.166.146.224/.... however when I actually click on the links, it returns with the
same issue of http://internet.ehsd.ds.contra-costa.org/......
- nitass
Employee
i think u may need to provide tcpdump and httpwatch (if had) to support. - ed_woo_26237
Nimbostratus
After using Fiddler, I found that some of the pages contains links with http:\u002f\u002finternet.ehsd.ds.contra-costa.org instead of just internet.ds.contra-costa.orgAfter changing the steam accordingly, it is working however,
Is there a way to add multiple domains to the stream?
- nitass
Employee
good job! - ed_woo_26237
Nimbostratus
THank you. I did try using the Stream Profile and putting in the target of my stream:Source = http:\u002f\u002finternet.ehsd.ds.contra-costa.org
Target = https://64.166.146.224
and it works. However I also need
Source = http://internet.ehsd.ds.contra-costa.org
Target = https://64.166.146.224
to work at the same time.
When I tried combining these into a multiple search and replacement in the Target section:
@http:\u002f\u002finternet.ehsd.ds.contra-costa.org@https://64.166.146.224@ @ http://internet.ehsd.ds.contra-costa.org@https://64.166.146.224@
The above does not work. (there is a space between the two @ symbols)
- nitass
Employee
there is no space between 4th @ and http://internet..., isn't there? - ed_woo_26237
Nimbostratus
yes, no space.
Recent Discussions
Related Content
* 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