Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bradley Kronson 62 posts 113 karma points
    Feb 26, 2019 @ 12:14
    Bradley Kronson
    0

    HTTP site hosted behind HTTPS proxy not using correct protocol when generating sitemap

    So I have an interesting set up which is affecting the XML site map generation

    Our web site is hosted behind a proxy server which holds the sites SSL certificate.

    So the site sits native in HTTP, but the outside world sees it as HTTPS because of the proxy.

    When the sitemap is generated, it looks like the because the site is in HTTP, all links in the sitemap are generated by the IIS domain inside the proxy, ie the HTTP.

    This obviously causes some issues because all the links are actually HTTPS in the outside world

    Is there anyway to force the sitemap generation to use a specific domain ?

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Feb 26, 2019 @ 13:18
    Richard Soeteman
    0

    Hi,

    It takes the scheme of the request that comes in so that makes sense. There was always a way to override this on node level but now I have made a config option that you can use to force HTTPS rendering. Add the following snippet to the appsettings of Web.config and all rendering of the sitemap should be https:

    <add key="SEOChecker.ForceHttps" value="true" />
    

    Download 2.2.4 Hotfix here. Will be included in the 2.2.4 release.

    Domain can be set when you assign the canonical domain to a rootnode

    Best,

    Richard

  • Bradley Kronson 62 posts 113 karma points
    Feb 26, 2019 @ 13:36
    Bradley Kronson
    0

    Thanks Richard, much appreciated!

  • Bradley Kronson 62 posts 113 karma points
    May 31, 2019 @ 10:39
    Bradley Kronson
    0

    Hi Richard, see you updated to 2.8, does that mean the 2.2.4 (for Umbraco 7) is not coming now?

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Jun 03, 2019 @ 07:06
    Richard Soeteman
    0

    2.2.4 will also be release. 2.8 is Umbraco V8+ only. Can't support both Umbraco versions in a single package. Will do some final testing on 2.2.4 before release in the coming week(s)

  • Bradley Kronson 62 posts 113 karma points
    Jun 10, 2019 @ 14:04
    Bradley Kronson
    0

    Thanks Richard, looking forward to it

  • Thomas 315 posts 602 karma points c-trib
    Mar 02, 2021 @ 13:53
    Thomas
    0

    Hi Richard

    I have some issue with a site behind a HTTPS proxy.

    Running Umbraco 7.15.6 and seochecker 2.2.5.

    The 404 are not working it just gives the default umbraco 404 page

    Sitemap give a 504 Gateway Time-out - The server didn't respond in time.

    I have tried to add didn't do anything..

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Mar 03, 2021 @ 12:50
    Richard Soeteman
    0

    SEOChecker takes the scheme from the HTTPRequest which is propably http instead of https. In V8 version I am about to release this is addressed but heavily using on Umbraco V8 architecture so not easy to backport to V7. If you can make sure scheme is always https it will work.

    Hope this helps,

    Richard

  • Thomas 315 posts 602 karma points c-trib
    Mar 03, 2021 @ 12:57
    Thomas
    0

    Hey Thanks :)

    Not quite sure about what you mean here "If you can make sure scheme is always https it will work."

    The solution is set to umbracoUseSSL = false ?

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Mar 03, 2021 @ 12:59
    Richard Soeteman
    0

    No mean that behind the proxy all requests need to be https as well.

  • Thomas 315 posts 602 karma points c-trib
    Mar 03, 2021 @ 13:34
    Thomas
    0

    Hmm okay. It's not possible. All the certificates are handled by the haproxy infront of the load balancer

  • Thomas 315 posts 602 karma points c-trib
    Mar 04, 2021 @ 11:02
    Thomas
    0

    Is there a way to force it to use https ?

    enter image description here

    I have added ?

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Mar 04, 2021 @ 11:05
    Richard Soeteman
    0

    For V8 that will be possible soon indeed as mentioned above yesterday.

Please Sign in or register to post replies

Write your reply to:

Draft