Configure BI 302 redirect without trailing slash.

We have BI installed on a Windows server behind an F5 BigIP LTM. The LTM is handling the SSL communications to the BI pool. When going to https://bi.domain.com/xmlpserver/ everything is fine. Without the trailing slash it is throwing a 302 redirect to a non-ssl location:
$ curl -I -k https://bi.domain.com/xmlpserver
HTTP/1.1 302 Moved Temporarily
Server: Apache-Coyote/1.1
Location: http://bi.domain.com/xmlpserver/
Transfer-Encoding: chunked
Date: Fri, 01 Oct 2010 00:34:21 GMT
How can we change the redirect location to reflect the correct URL of: https://bi.domain.com/xmlpserver/?
Thanks in advance,
John

If your load balancer is forwarding requests from one port to another, it should also rewrite the port number in Location header fields returned from Web Server. You can check your load balancer's documentation for details on how to configure your load balanacer.
If for some reason it's not possible to correctly configure your load balancer, you can override the port number Web Server will use in redirects by editing the servername attribute in server.xml. In your case, you would specify servername="www.mysite.com:80".

Similar Messages

  • 302 Redirect Problem

    I'm running Sun Java Web Server 6.0. I've got multiple virtual web servers mapped to different ports on one server. I'd like to enable users to type something like:
    http://www.mysite.com/training
    but if they leave off the trailing slash a 302 redirect error will occur. I read in an earlier post on this site that if you put servername="mysite:8088" in the server.xml file this will solve the problem . I have tried this but still get 302 errors.
    Any ideas? Thanks.

    If your load balancer is forwarding requests from one port to another, it should also rewrite the port number in Location header fields returned from Web Server. You can check your load balancer's documentation for details on how to configure your load balanacer.
    If for some reason it's not possible to correctly configure your load balancer, you can override the port number Web Server will use in redirects by editing the servername attribute in server.xml. In your case, you would specify servername="www.mysite.com:80".

  • Major crawler issues - removal of trailing slashes from URLs and (seemingly) poor regex implementation

    I've been suffering from two issues when setting up a crawl of an intranet website hosted on a proprietary web CMS using SharePoint 2010 Search. The issues are:
    1: The crawler appears to remove trailing slashes from the end of URLs.
    In other words, it turns http://mysite.local/path/to/page/ into http://mysite.local/path/to/page. The CMS can cope with this as it automatically forwards requests for http://mysite.local/path/to/page to http://mysite.local/path/to/page/ -
    but every time it does this it generates a warning in the crawl - one of the "URL was permanently moved" warnings. The URL hasn't been moved, though, the crawler has just failed to record it properly. I've seen a few posts about this in various places,
    all of which seem to end without resolution, which is particularly disappointing given that URLs in this format (with a trailing slash) are pretty common. (Microsoft's own main website has a few in links on its homepage - http://www.microsoft.com/en-gb/mobile/
    for instance).
    The upshot of this is that a crawl of the site, which has about 50,000 pages, is generating upwards of 250,000 warnings in the index, all apparently for no reason other than the crawler changes the address of all the pages it crawls? Is there a fix for this?
    2: The Regex implementation for crawl rules does not allow you to escape a question mark
    ... despite what it says
    here: I've tried and tested escaping a question mark in a url pattern by surrounding it in square brackets in the regex, i.e.: [?] but regardless of doing so, any URL with a question mark in just falls right through the rule. As soon as you remove the 'escaped'
    (i.e. seemingly not actually escaped at all) question mark from the rule, and from the test URL pattern, the rule catches, so it'd definitely not escaping it properly using the square brackets. The more typical regex escape pattern (a backslash before the
    character in question) doesn't seem to work, either. Plus neither the official documentation on regex patterns I've been able to find, nor the book I've got about SP2010 search, mention escaping characters in SP2010 crawl rule regexes at all. Could it be that
    MS have released a regex implementation for matching URL patterns that doesn't account for the fact that ? is a special character in both regex and in URLs?
    Now I could just be missing something obvious and would be delighted to be made to look stupid by someone giving me an easy answer that I've missed, but after banging my head against this for a couple of days, I really am coming to the conclusion that Microsoft
    have released a regex implementation for a crawler that doesn't work with URL patterns that contain a question mark. If this is indeed the case, then that's pretty bad, isn't it? And we ought to expect a patch of some sort? I believe MS are supporting SP2010
    until 2020? (I'd imagine these issues are fixed in 2013 Search, but my client won't be upgrading to that for at least another year or two, if at all).
    Both these issues mean that the crawl of my client's website is taking much longer, and generating much more data, than necessary. (I haven't actually managed to get to the end of a full crawl yet because of it... I left one running overnight and I just
    hope it has got to the end. Plus the size of the crawl db was 11GB and counting, most of that data being pointless warnings that the crawler appeared to be generating itself because it wasn't recording URLs properly). This generation of pointless mess
    is also going to make the index MUCH harder to maintain. 
    I'm more familiar with maintaining crawls in Google systems which have much better regex implementations - indeed (again, after two days of banging my head against this) I'd almost think that the regex implementation in 2010 search crawl rules was cobbled
    together at the last minute just because the Google Search Appliance has one. If so (and if I genuinely haven't missed something obvious - which I really hope I have) I'd say it wasn't worth Microsoft bothering because the one they have released appears to
    be entirely unfit for purpose?
    I'm sure I'm not the first person to struggle with these problems and I hope there's an answer out there somewhere (that isn't just "upgrade to 2013")?
    I should also point out that my client is an organisation with over 3000 staff, so heaven knows how much they are paying MS for their Enterprise Agreement. Plus I pay MS over a grand a year in MSDN sub fees etc, so (unless I'm just being a numpty) I would
    expect a higher standard of product than the one I'm having to wrestle with at the moment.

    Hi David,
    as i know in sharepoint 2010 crawl there is a rule to include or exclude the URL that using '?' characters, if i may know have you implemented the rule?
    In the Crawl Configuration section, select one of the following options:
    Exclude all items in this path. Select this option if you want to exclude all items in the specified path from crawls. If you select this option, you can refine the exclusion by selecting the following:
    Exclude complex URLs (URLs that contain question marks (?)). Select this option if you want to exclude URLs that contain parameters that use the question mark (?) notation.
    Include all items in this path. Select this option if you want all items in the path to be crawled. If you select this option, you can further refine the inclusion by selecting any combination of the following:
    Follow links on the URL without crawling the URL itself. Select this option if you want to crawl links contained within the URL, but not the starting URL itself.
    Crawl complex URLs (URLs that contain a question mark (?)). Select this option if you want to crawl URLs that contain parameters that use the question mark (?) notation.
    Crawl SharePoint content as HTTP pages. Normally, SharePoint sites are crawled by using a special protocol. Select this option if you want SharePoint sites to be crawled as HTTP pages instead. When the content is crawled by using the HTTP
    protocol, item permissions are not stored.
    for the trailing slash issue, may i have your latest cumulative update or your sharepoint database number? as i remember there was a fix on SP1 + june update regarding trailing slash, but not quite sure if the symptoms are the same with your environment.
    Sharepoint may use sharepoint connector regarding regex, but older regex may not able to have a capability to filter out the parameters so, a modification regarding the trailing slash may happend.
    please let us know your feedback.
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Why the initial 302 redirect?

    I've been knocking around this problem with BEA for awhile now, with no
              resolution yet. Why does the initial request to my site first get a 302
              redirect page that then leads to the actual page I wanted served
              (index.jsp)? I don't have it configured to do any redirect, and the BEA
              engineers have told me that this is simply the way weblogic and other
              appservers are designed. DO most of the other appserver do this? Why can't
              it just be made to return the requested page right up front? They (the BEA
              engineers) claim that weblogic cannot be configured to do this.
              Oh, and the reason I ask is that we've been advised of problems with
              crawlers not following these redirect pages. Don't know if I believe that
              or not.
              

    Hi himanshu1979,
    <jsp:farward> is compulsary
    String destination;
    /* construct your destination url as you like */
    this.getServletContext().getRequestDispatcher(destination).forward(request,
    response);
    Browser is showing ur jsp from the cache.
    So you can instruct the browser not to do that by using
    <code>
    response.setHeader("Expires","0");
    </code>
    or
    <code>
    response.setHeader("Pragme","no-cache");
    </code>
    Regards,
    Tirumalarao
    Developer TechnicalSupport,
    Sun MicroSystem,India.

  • 302 Redirect Location Header Rewrite not working with code upgrade

    Hi,
    Description:
    We have a portal webservice hosted by an ACE4710. It has two services (www/https) on the same IP 10.1.1.1.
    One is a redirect service that redirects all requests to tcp/80 on this ip to the other which is a 'standard' https proxy service.
    The backend servers are http only. Externally everything needs to be https.
    So we have an ssl proxy and Location header http to https rewrite on the https service.
    The configuration below operates correctly on v5_1_2.
    But with a code upgrade to 5_3_1b, the Location header rewrite does not work.
    We've tried several different configurations and even 'ssl url location rewrite ".*". It just looks like the ACE is completely ignoring the configuration to rewrite the Location field.
    Reverting to the older code fixes the problem.
    Problem seen:
    Here is the problem as seen on the *client*. The 302 redirect Location header is NOT rewritten:
    Response headers:
    HTTP/1.1 302 FOUND
    Server: nginx
    Date: Fri, 20 Mar 2015 10:59:43 GMT
    Content-Type: text/html; charset=utf-8
    Content-Length: 295
    Connection: keep-alive
    Location: http://website.liveportal.nhs.uk/homepage/information
    Cache-Control: no-cache, no-store
    Set-Cookie: information=35a7831d-928d-4122-aef3-39ef48ac4440; Path=/; secure; HttpOnly
    X-Frame-Options: DENY
    HTTPSampleResult fields:
    ContentType: text/html; charset=utf-8
    DataEncoding: utf-8
    Config extract:
    1) Set up the servers (4 normal on tcp/80 and one for a redirect)
    rserver host WEBSERVICE-1
      ip address 192.168.1.1
      conn-limit max 200000 min 160000
      inservice
    ...and the same for the other three
    rserver redirect PORTAL_REDIRECT
      webhost-redirection https://%h/%p 302
      inservice
    2) Set up the server farms
    serverfarm host PORTAL_LIVE
      probe webping
      rserver WEBSERVICE-1 80
        inservice
      rserver WEBSERVICE-2 80
        inservice
      rserver WEBSERVICE-3 80
        inservice
      rserver WEBSERVICE-4 80
        inservice
    serverfarm redirect PORTAL_HTTP_REDIRECT
      rserver PORTAL_REDIRECT
        inservice
    3) Setup the ssl proxy and a location rewrite to https for responses from the servers
    action-list type modify http HTTPS_LOCATION
      header rewrite response Location header-value "http://(.*)" replace "https://%1"
    ssl-proxy service WEB_SSL_PROXY
      key webportal.key
      cert webportal.crt
      chaingroup root-chain
      ssl advanced-options SSL-SECURE-STRONG-WEB
    4) Set up the L4 services
    class-map match-all PORTAL_HTTP
      2 match virtual-address 10.1.1.1 tcp eq www
    class-map match-all PORTAL_SSL
      2 match virtual-address 10.1.1.1 tcp eq https
    5) Setup the policy maps - one for the reals servers with header rewrite for redirects
    policy-map type loadbalance http first-match PORTAL_HTTP
      class class-default
        serverfarm PORTAL_HTTP_REDIRECT
    policy-map type loadbalance http first-match PORTAL_SSL
      class class-default
        serverfarm PORTAL_LIVE
        action HTTPS_LOCATION
    6) Create the service policy
    policy-map multi-match EXTERNAL-SERVICES
      class PORTAL_SSL
        loadbalance vip inservice
        loadbalance policy PORTAL_SSL
        loadbalance vip icmp-reply
        appl-parameter http advanced-options PARAM-HTTP
        ssl-proxy server WEB_SSL_PROXY
      class PORTAL_HTTP
        loadbalance vip inservice
        loadbalance policy PORTAL_HTTP
        loadbalance vip icmp-reply
    7) Apply to the interface
    interface vlan 211
      description External Access
      ip address x.x.x.x 255.255.255.0
      alias x.x.x.x 255.255.255.0
      peer ip address x.x.x.x 255.255.255.0
      access-group input PERMIT-ALL
      service-policy input EXTERNAL-SERVICES
      no shutdown

    I found that the v5_3_1b code seems to need a bit of extra configuration and it now works ok.
    parameter-map type http PARAM_HTTP
    header modify per-request
    no persistence-rebalance
    case-insensitive

  • FF 13.0.1 - Constant 301, 302 redirects and pages not loading up... Has anyone encountered the same issue? I hate having to go back using IE

    That i log in my Gmail, Hotmail, Facebook and the CMS of my Joomla 1.5 website, i keep on getting issues such as 301 or 302 redirects...
    When i went to input.mozilla.org/feedback , the page showed completely blank....
    I hate having to use IE as my second browser...

    Hi,
    Are the sites working in IE?? You can consider the [https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems Reset Firefox] feature via '''Help''' ('''Alt''' + '''H''') > '''Troubleshooting Information'''.
    (To revert to the previous profile, close the new profile, start Firefox and choose the '''*.default''' profile. While the [https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles Profile Manager] is open, you can also delete the newly reset profile (the one containing random numbers)).
    [https://support.mozilla.org/en-US/kb/Managing-profiles Managing profiles]
    [https://support.mozilla.org/en-US/kb/Profiles?s=profile&r=2&e=sph&as=s Profiles Howto]

  • Keeping query strings despite an automatic 302 redirect

    is there anyway for a query string to persist despite an automatic 302 redirect by the server??
    for instance if my site has a 'tmp' directory and i want to pass a parameter to the index page in 'tmp'
    ... but I go to
    http://www.mysite.com/tmp?qvar=something
    in a browser, the server will automatically do a 302 redirect to
    http://www.mysite.com/tmp/
    so the query string variable is lost.
    i thought about having a filter run, to pick off the query string variable before the redirect, but the filter will only run after the redirect happens.
    any insight would be great.
    thanks.

    This might help: http://www.mail-archive.com/[email protected]/msg00353.html

  • : invalid content type for SOAP: TEXT/HTML; HTTP 302 Redirect

    Hi Experts,
    I am facing with the flowing error when we are receiving for the soap receiver chanel.
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 302 Redirect
    is their any content type to give in soap receiver channel.
    please let me know.
    Regards
    Raju

    I think the message is misleading. HTTP 302 meaning is that the url specified in not found or invalid for that service. You might want to check with external system that the specified URL in the SOAP receiver communication channel is right? Also you can find the URL from the WSDL itself. Similar test do it outside PI using the SOAPUI or XMLSPY and see the response error.

  • Can I make a Data Guard configuration using EM console without Grid Control

    Can I make a Data Guard configuration using EM console without Grid Console?
    Can I download Grid Console software from Oracle website without cost?

    Assuming this is for 10g,
    You could use Oracle® Data Guard Broker
    Even you can download Grid Control software for free from Oracle site, you can't legally use it without license.

  • How to make a redirect without auto-redirect from the portlet "edit" mode?

    How to make a redirect without auto-redirect from the portlet "edit" mode?
    I use some sofisticated customizing with server-side validation of the form data. I want to redirect to the page of the portlet "show" mode and to the "edit" mode depending on the validation results. How can I do it?

    Heay.....this worked for me.
    I am able to change the mode programatically from edit to show.
    HttpPortletRendererUtil.handleEditAction(portletRenderRequest,"OK");
    I removed Apply , OK and Cancel buttons and applied my own Submit and Back button in Personalize mode and then change the mode to show on click of Back button using the above mentioned statement.
    Thanks
    ~Neeraj Sidhaye
    Try_Catch_Finally @ Y !
    ExtremePortal @ Gmail&#12288;&#65316;&#65359;&#65364;&#12288;&#65315;&#65359;&#65357;

  • Using the af:image tag generates a http 302 redirect - image not cached

    Using jdev 11.1.1.3.0 - I have a page template that displays a logo on top with the af:image tag. On my browser I have installed a sniffer called HttpWatch. When I look at the http requests I see that the image is never cached. Instead it shows a http return code of 302 (redirect) for the request fetching the image. the h:graphicImage tag does not have this behavior. Is this by design?

    Hi,
    don't know the code detail of h:graphicImage, but the ADF Faces image component reads the image from the resource loader (which is a servlet), which is not the same as just referencing the file on the public directory of the deployed application. So I assume that this is the reason why the image is not cached.
    Frank

  • Remove the trailing slash from a folder

    Hi everyone,
    My company has several remote sites that rely on documentation I write here at WHQ in order to deploy macs according to company standards. Since these documents are in constant update mode, I wrote a small droplet that I use to just drop the documentation folder on and copy it to the remote site servers overwriting any existing documentation folder.
    I have the following piece of code:
    if CHIError is not equal to "" then
    display alert CHIError giving up after 5
    else
    repeat with anItem in droppedItems
    if ((kind of (info for anItem)) = "Folder") then
    set anItem to quoted form of POSIX path of anItem
    do shell script "cp -rf " & anItem & space & "/Volumes/MacPackaging$/MacDocumentation/"
    else
    set anItem to quoted form of POSIX path of anItem
    do shell script "cp -f " & anItem & space & "/Volumes/MacPackaging$/MacDocumentation/"
    end if
    end repeat
    end if
    The problem I am running into is that when anItem is a folder and converted to a POSIX path, it ends up with a trailing slash, causing cp -r to copy only the contents of the folder and not the folder itself... Is there a way to remove the trailing slash or another conversion method I can use to copy the entire folder?
    If I take out the if statement to check for a folder and the -r flag on cp, cp errors out telling me that anItem is a directory and can't be copied, which is to be expected. Ah... how I wish bash could do droplets...

    By the way, since the “info for” command is now deprecated, you could as well write your repeat block as follows:
    *repeat with anItem in droppedItems*
    *   if last character of (anItem as text) is ":" then*
    *      set anItem to quoted form of text 1 through -2 of POSIX path of anItem*
    *      do shell script "cp -rf " & anItem & space & "/Volumes/MacPackaging$/MacDocumentation/"*
       else
    *      set anItem to quoted form of POSIX path of anItem*
    *      do shell script "cp -f " & anItem & space & "/Volumes/MacPackaging$/MacDocumentation/"*
    *   end if*
    *end repeat*
    On the other hand, if you would like to use pure AppleScript, you could also replace the whole repeat block with the following single line of code:
    *tell application "Finder" to duplicate droppedItems to POSIX file "/Volumes/MacPackaging$/MacDocumentation/" with replacing*

  • Trailing slash in meeting room url

    When Breeze creates a new meeting room URL, the URL has a
    trailing slash at the end of the URL . When accessing the URL, it
    it necessary to include the trailing slash in the URL? Would
    leaving off the trailing slash cause connection issues?

    No, I have never found it to matter. But you can always try
    it out yourself.

  • Need  Spam Filter redirection without sending 'undeliverable'

    I've been using the GUI setting for the Spam filter.
    Is there a way to set the filter to redirect without sending the 'undeliverable' message?
    We want to keep a copy of the SPAM for reference when checking if a message was a false positive. I want to send it to another account that we can check.
    Presently when setting the Spam filter to 'redirect' spam to another account it sends an error to the sender saying it was undeliverable. Since most spam messages have the same recipient and sender address the user that would have got the spam is now getting the 'undeliverable' message.

    Hi!
    I had this same problem about a month or so ago, and then it magically cleared up.
    I just started experiencing it again a couple of days ago.
    It's CLEARLY a Verizon issue, but their technical support leaves a LOT to be desired.
    I've been a DSL customer for 10 years now, and usually have to either troubleshoot issues myself or wait for them to go away.
    I certainly hope someone from Verizon reads these forums, but I wouldn't bet the farm on that.
    Let's see what happens.
    Rob

  • 302 Redirect Error

    I am getting a 302 redirect message when I send a HTTP POST command to a server. I can access the url directly and login just fine. Is it possible that I am getting a 302 due to either authentication or encoding issue? I am using basic authentication in the header and the content-type is form-urlencoded.

    I can access the url directlyWhat does "directly" mean? If it means it works in your browser, that's because browsers take care of redirects for you.
    Or does it mean something else?

Maybe you are looking for

  • Fireworks CS5 crashes often due to buggy memory handling. Will there be a patch?

    Fireworks CS5 has a major bug that causes a memory leak or memory "cap" where the application stops functioning once it has used approximately 1.5 GB of memory or so. (I read that 2GB was the cap, but I have never seen Fireworks make it to 2GB).  I o

  • How do i regain purchased music after a computer crash?

    My parents' computer crashed and I had to reinstall windows. I couldn't turn the ipod into a hard disk, so I figure I am going to have to import all of their cds again, but is there a way to get their purchased music back into iTunes? Thanks.

  • Error: Object variable or With block variable not set.

    Hi, when i try to fill the control tables and browse for the target period in HFM (sys 9.3.1) i get the error: Error: Object variable or With block variable not set. When browsing for the target value in the location for the value no problem occurs.

  • Mandatory field in production order-reg

    Hi, In production order, I want to make Good recipient field as mandatory (AFPOD-WEMPF) how to do it. I tried through OIAN and SHD0, it is not happening. Regards Karthikeyan

  • Adding ChangeListener for JTabbedPane

    Hello smart people, Does anyone know what is the correct way to add a change listener to a JTabbedPane. I tried to fo it like this: mainFrame = new JTabbedPane(); mainFrame.add(panelOne, "tab1"); mainFrame.add(panelTwo, "Training"); mainFrame.add(pan