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".

Similar Messages

  • 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]

  • 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

  • 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.

  • 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".

  • 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

  • Dynamic form "Cancel" redirect  problem in frames - bugfix?

    My question: Is there a "long run" down side to my implementing this modification to style.js?
    The below post by Ionut:MX Division Support Specialist worked for me as a solution to a current form "click cancel" redirect navigation problem:
    When a DWtoolbox dynamic form wizard form is placed on a page within frames, clinking on cancel does not return a user to the list that sent them to the form. The user is sent somewhere else.
    Begin Ionut post-------------
    If you don't need to add extra parameters to the "Edit" button, you can solve the redirect problem by editing the "/includes/skins/style.js" file and replace:
    nxt_list_edit_link_form(this, myinput.previousSibling.href);
    with:
    nxt_list_edit_link_form(this, a.href);
    End----------------------
    Thanks Ionut for the tip and anyone in support for letting me know if this is a safe mod for the long run,
    Steve M

    Hi Marny,
    Hello Steve. I am new to Adobe & very confused. You seem to grasp the program very nicely, please help Me?
    I´m not not Steve, however -- what problem do you have exactly, and is this problem related to the "Adobe Dreamweaver Developer Toolbox" extension or related to Dreamweaver ?
    If it´s related to ADDT, please describe your problem by starting a new thread -- if it´s related to Dreamweaver, please post your questions in the general Dreamweaver forums.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Proxy redirect problem

    I'm having a redirect problem going through a weblogic proxy. An app I was using appears to be redirecting the browser always to localhost:7121 which won't work with access via the my domain.
    To explain fully I set up a test JSP page which outputs request.getRequestURL().toString() so I could trace what was happening. The weblogic configuration is explained below:
    I'm using Weblogic 8.1 sp5. I've setup a 4 instances: a proxy (port 7120), redirector (port 7121) and cluster (two instances running on 7131, 7132)
    If I navigate to:
    http://localhost:7120/myapp/test.jsp my test page outputs: request.getRequestURL().toString() : http://localhost:7121/myapp/test.jsp
    and again to:
    http://localhost:7131/myapp/test.jsp my test page outputs: request.getRequestURL().toString() : http://localhost:7121/myapp/test.jsp
    or
    http://localhost:7132/myapp/test.jsp my test page outputs: request.getRequestURL().toString() : http://localhost:7121/myapp/test.jsp
    The output is always the same ... it always says the requestURL is from localhost:7121 the redirector?
    Can anyone help explain why I always get the same output? It is completely baffling me.
    Thanks,
    Matt
    Edited by: user5673380 on Oct 15, 2008 3:52 PM

    The problem was caused by incorrect configuration of FrontEndHttpPort and FrontEndListener and FrontEndHost in the cluster configuration. These values were incorrectly during config wizard install.

  • I want to downgrade from ios7 on my ipad mini-it seems to have affected certain websites which I now can't access due to 'redirect' problem

    I want to downgrade from ios7 on my ipad mini-it seems to have affected certain websites which I now can't access due to 'redirect' problem....

    Google is your friend. You have to move very quickly on this. It can't be discussed how to do it on this site and is not supported.

  • 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?

  • B2C web shop - change/remove the 302 redirects for google search

    Hi All,
    We are making our webshop (http://hamperking.com.au) search engine friendly and implimenting a number of SEO recommendations.  One of these recommendation requires the removal of the "works as designed" 302 redirects (temporary) in our CRM 2007 shop.  Or atleast change them to 301 redirects (permenant).  As the 302 redirects are temporary, google will not give them priority.
    Can anyone point me into the right direction as to the SC and DC where is config is made?
    Cheers,
    Vic

    I can not answer your direct question, but am curious as to why you are not using the [Web Crawler|https://service.sap.com/sap/support/notes/1128832] to accomplish this or perhaps you were unaware of it?

  • ACE: SSL termination, Probe and Redirect problem

    Hello,
    I have problem with three things: -1) SSL offload, -2) probe, and -3) server redirect.
    1) I made SSL offload like shows attached file with "show run". But during going to the VIP address by the browser: https://192.168.254.143 I get window with Java error: java.lang.NullPointerException - I have to click OK on this window and then can work fine. Without SSL offload I don't have this error message in window.
    When I have SSL offload I have following configuration:
    ssl-proxy service SSL
    key klucz.pem
    cert certyfikat.pem
    serverfarm host SFARM
    rserver S1 8080
    rserver S2 8080
    policy-map multi-match SLB-POLICY
    class SLB
    ssl-proxy server SSL
    Without SSL offloading I have only this:
    serverfarm host SFARM
    rserver S1 (without 8080!)
    rserver S2
    2) Right now I have two real servers and I send traffic to them by port TCP 8080. So I made probe to check TCP 8080 port availability.:
    probe tcp TCP_8080
    port 8080
    interval 15
    passdetect interval 60
    serverfarm host SFARM
    rserver S1 8080
    probe TCP_8080
    inservice
    rserver S2 8080
    probe TCP_8080
    inservice
    I want also check port TCP 6400 availability, and I only one from port 8080 or 6400 don't work - make real server unavailable. So must work TCP port 8080 ang 6400 togethet to treat real server as operational.
    So I want to make something like this:
    probe tcp TEST
    port 8080 and 6400 !?! - ofcourse It is impossible but I want to make config with this functionality.
    How to do this?
    3) I hant to make that when I write in browser https://bo.kw.coig.biz/ = https://192.168.254.143 I want to be redirected to one of real server on address: https://bo.kw.coig.biz/businessobjects/enterprise115/desktoplaunch/InfoView/logon/logon.do
    I made something like this:
    rserver redirect S3
    webhost-redirection https://%h/businessobjects/enterprise115/desktoplaunch/InfoView/logon/logon.do 302
    inservice
    serverfarm redirect REDIRECT
    rserver S3
    inservice
    policy-map type loadbalance first-match POLICY-TYPE
    class class-default
    serverfarm REDIRECT
    But this configuration dosn't work. I have in browser window with error messeging.
    How to do this?

    1/ this is a java problem.
    Java is telling you that it attempted to use a null pointer. You need to check with the people who created the java program
    2/ you can configure multiple tcp probe, one for each port you need to monitor and assign all the probes to the serverfarm.
    BTW, you can assign the problem to the entire serverfarm so you don't need to specify it for each rserver.
    3/ the problem with your redirect is that you applied to class-default.
    So even a request to ...../logon will be redirected to ...../logon.
    Therefore you just created a nice loop.
    You need to create a class-map to only match the url "/" so the redirect is only applied then.
    Gilles.

  • Crystal Report in an iFrame redirect problem

    Hi!
    I have built a page with a only Crystal Report on it, which I display in an iFrame on another page.
    I have a hyperlink on the page that is used to redirect the iFrame by assigning the iFrame a name and setting the target of the hyperlink to the iFrame. When the user clicks the hyperlink, it will redirect the iFrame.
    This all works fine up until the point at which you generate the actual Crystal report. After the report has generated, attempting to redirect the iFrame via the hyperlink causes a new browser tab/window to open. A few tests that I have run using Javascript or codebehind circumvent this issue, but as it stands I cannot use this method.
    This issue has only just arisen with the VS2010 version of Crystal Reports. The older versions do not have this problem.
    Research I have done into the issue have been fruitless and have tinkered with the Report Viewer itself a bit to no avail.
    Is there an explanation for this issue and/or a means of getting past this?
    Any help or nudge in a new direction is very much appreciated!
    Regards,
    Frank.

    Hello Frank:
    This issue has been reported to R&D for a fix (ADAPT01554950). At this time, the fix is targeted (not guaranteed) for Service Pack 3. ETA; mid 2012.
    For a possible work-around, see the following thread:
    Crystal Reports Viewer VS2010 FRAME target issue
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]
    Edited by: Ludek Uher on Nov 28, 2011 7:48 AM

Maybe you are looking for

  • Searching for Nonprinting Objects

    Is it possible to do a search for objects with an attribute set to Nonprinting? I have this odd problem:  I work on a magazine, and we insert a little custom endmark image at the end of each story.  For some reason, whenever anyone edits that story i

  • Samsung Continuum Music Player- 5.1 Channel error message

    I have a Samsung Continuum.  Recently, when I use the Music Player application, when I press the 5.1 stereo sound I get an error message that states "5.1 channel can only be activated when sound effects are off."  I have no idea what sound effects it

  • About Result Set

    hi folks, am using jsp to display the records from the db via jdbc credentials. ok. i had doubt regarding result set in java.. In my jsp page i show the records "form" entry format. while loading the page. i used while(rs.next() operation) to get the

  • Macpro 5,1 installed yosemite, now no ethernet

    I have a mid-2010 MacPro, 12-core 2.66Ghz, 22GB RAM.  It has 2 drives installed:  one runs Mavericks 10.9.5, the other runs Yosemite 10.10.  When I boot in Mavericks, everything is fine.  When I boot into Yosemite, there is no ethernet at all.  When

  • F11 (query mode) not working in payment form in AP

    Dear All, F11 function not working in Payment form in R12. I made a payment and quit the form. Whem am trying to query the payment invoice to void it. F11 functionality is not working. Could anyone tell me the solution? Regards Deeps.