Copied to clipboard

Flag this post as spam?

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


  • Nadia 45 posts 122 karma points
    Dec 03, 2020 @ 02:52
    Nadia
    0

    I am having a really weird issue with the 404 and not sure what is happening.

    I have a site setup as a scalable solution on Azure. Has a scalable front end site and single back office site.

    the back office site is redirecting to the custom 404 page fine, but the scalable site is going to the "this is deliberately ugly page"

    I can't see any significant difference between the configuration on both sites, other than the settings described in here https://our.umbraco.com/documentation/Getting-Started/Setup/Server-Setup/Load-Balancing/file-system-replication#mixture-of-standalone--synchronised

    The 404 page exists and works if I just go directly to it.

    In Umbraco settings I have the node ID set ie

    <errors>
      <error404>11644</error404>
    </errors>
    

    In web,config have

      <system.web>   
        <customErrors mode="RemoteOnly" defaultRedirect="/error">
              <error statusCode="404" redirect="/404" />
            </customErrors>
     </system.web>  
    
      <system.webServer>  
             <httpErrors existingResponse="PassThrough" />
      </system.webServer>  
    

    I have run out of ideas of were to look. Anybody got any suggestions?

  • David Armitage 505 posts 2073 karma points
    Dec 03, 2020 @ 06:28
    David Armitage
    0

    Have you got anything in your web.config that is handling this before getting to the Umbraco config?

    Or maybe there is some IIS or Azure settings layered over the top?

  • Nadia 45 posts 122 karma points
    Dec 03, 2020 @ 18:26
    Nadia
    0

    There is IIS rewrites, but there isn't anything in there that should be redirecting a 404 page.

    I have tried removing them all to see if made a difference, but still get the same result

    I can't see any difference in the appsevice settings that would effect this either.

  • David Armitage 505 posts 2073 karma points
    Dec 03, 2020 @ 21:58
    David Armitage
    0

    Try removing this

     <error statusCode="404" redirect="/404" />
    
    <httpErrors existingResponse="PassThrough" />
    

    I don't have anything like this is my web.config. I think you have two error handling trying to do the same thing.

    I just use this in the UmbracoSettings.config on it's own and it works fine.

    <errors>
      <error404>11644</error404>
    </errors>
    

    Obvious but double check the Id matches up to your error page Id.

Please Sign in or register to post replies

Write your reply to:

Draft