Copied to clipboard

Flag this post as spam?

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


  • Chris Van Oort 89 posts 345 karma points
    Feb 19, 2018 @ 18:20
    Chris Van Oort
    0

    New ApplicationUrl detected frequently with Umbraco 7.8.1 Multiple Domains

    We've got a single Umbraco instance running 7 Umbraco websites right now. I've recently upgraded to Umbraco 7.8.1 and in UmbracoTraceLog, I'm getting these log entries every time a URL is requested across all of our different websites.

     2018-02-19 12:08:26,168 [P10500/D13/T45] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - New ApplicationUrl detected: https://www.rocketfailover.com:443/umbraco
     2018-02-19 12:08:26,173 [P10500/D13/T45] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - ApplicationUrl: https://www.thinix.com/umbraco (using web.routing/@umbracoApplicationUrl)
     2018-02-19 12:08:29,268 [P10500/D13/T16] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - New ApplicationUrl detected: https://www.rdiworks.com:443/umbraco
     2018-02-19 12:08:29,268 [P10500/D13/T16] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - ApplicationUrl: https://www.thinix.com/umbraco (using web.routing/@umbracoApplicationUrl)
     2018-02-19 12:08:58,069 [P10500/D13/T58] INFO  umbraco.BusinessLogic.Log - Log scrubbed.  Removed all items older than 2018-02-18 12:08:58
     2018-02-19 12:09:01,624 [P10500/D13/T59] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - New ApplicationUrl detected: https://www.audioengineering.com:443/umbraco
     2018-02-19 12:09:01,631 [P10500/D13/T59] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - ApplicationUrl: https://www.thinix.com/umbraco (using web.routing/@umbracoApplicationUrl)
     2018-02-19 12:09:02,146 [P10500/D13/T59] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred
    

    My umbracoSettings.config with an explicit URL:

      <web.routing
        trySkipIisCustomErrors="true"
        internalRedirectPreservesTemplate="false" disableAlternativeTemplates="false" disableFindContentByIdPath="false"
        umbracoApplicationUrl="https://www.thinix.com/umbraco" disableRedirectUrlTracking="true">
      </web.routing>
    

    As you can see above, I've tried explicitly setting the umbracoApplicationUrl in umbracoSettings.config but that doesn't seem to help.

    My umbracoSettings.config without an explicit URL:

      <web.routing
        trySkipIisCustomErrors="true"
        internalRedirectPreservesTemplate="false" disableAlternativeTemplates="false" disableFindContentByIdPath="false"
        umbracoApplicationUrl="" disableRedirectUrlTracking="true">
      </web.routing>
    

    Here's the UmbracoTraceLog without an explicit URL set:

     2018-02-19 11:00:02,761 [P10500/D2/T13] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - New ApplicationUrl detected: https://www.thinix.com:443/umbraco
     2018-02-19 11:00:02,761 [P10500/D2/T8] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - New ApplicationUrl detected: https://www.rdiworks.com:443/umbraco
     2018-02-19 11:00:02,763 [P10500/D2/T13] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - ApplicationUrl: https://www.thinix.com:443/umbraco (UmbracoModule request)
     2018-02-19 11:00:02,763 [P10500/D2/T8] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - ApplicationUrl: https://www.rdiworks.com:443/umbraco (UmbracoModule request)
     2018-02-19 11:00:03,027 [P10500/D2/T12] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - New ApplicationUrl detected: https://www.istatus.com:443/umbraco
     2018-02-19 11:00:03,028 [P10500/D2/T12] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - ApplicationUrl: https://www.istatus.com:443/umbraco (UmbracoModule request)
    

    Questions I have:

    • Does this constant flip-flopping of the ApplicationUrl have any performance impact?
    • Is this an issue I should care about?
    • If it does have a negative impact, is there a way to apply configuration file transformations to umbracoSettings.config for my staging and production environments (same way I do for web.config) so that I can specify explicit URLs for both environments?

    Best, Chris

  • Martin 3 posts 73 karma points
    Feb 22, 2018 @ 12:21
    Martin
    0

    I am experience the same issue as well after upgrade to 7.8.1. Before we were on 7.4.3 and there we didn't see this in the logs.

    I as well wonder if this is something to care about?

    Best, Martin

  • Chris Van Oort 89 posts 345 karma points
    Feb 28, 2018 @ 15:24
    Chris Van Oort
    0

    Bump

  • Chris Van Oort 89 posts 345 karma points
    Mar 08, 2018 @ 19:33
    Chris Van Oort
    0

    Bumping -- any ideas?

  • Tito 235 posts 416 karma points
    Jun 20, 2018 @ 14:43
    Tito
    1

    I am experiencing the same issue on Umbraco 7.10.4, any update?

  • Chris Van Oort 89 posts 345 karma points
    Jun 20, 2018 @ 16:02
    Chris Van Oort
    0

    Unfortunately never got this resolved; not sure if it's a problem or not.

  • osblues 8 posts 78 karma points
    Jul 19, 2018 @ 09:10
    osblues
    0

    I'm seeing this on 7.7.13 and it's causing issues.

    I've just sent a new user invite and instead of providing a link back to the correct domain, the email generated by Umbraco sends the user to a totally irrelevant domain that just happens to have been pointed to that IP at some point. This then fails, as it's configured for SSL and therefore fails the cert check.

    Is there any way we can turn off the auto detection of new URLs and just say "this/these are the ONLY domains Umbraco should ever listen on?"

    Thanks

    Adam

  • Simon Napper 49 posts 158 karma points
    Jul 19, 2018 @ 09:26
    Simon Napper
    0

    What have you got set up in your cultures and hostnames?

    Do you see the url's in the umbracoServer table in the DB?

  • osblues 8 posts 78 karma points
    Jul 19, 2018 @ 09:33
    osblues
    0

    Hi Simon,

    Culture and hostnames is configured with only correct hosts.

    umbracoServer table seems to only hold values which I would expect (actual domain and some dev/test ones).

    I'm seeing entries in the log like this though, so Umbraco is clearly trying to do things with invalid domains -

    2018-07-19 10:01:17,934 [P6964/D2/T62] ERROR Umbraco.Web.Scheduling.KeepAlive - Failed (at "https://www.invalid-domain.com:443/umbraco"). 
    System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
    

    I even have an ISAPI_Rewrite rule to attempt to stop them even hitting Umbraco, but I'm not convinced that's working -

    RewriteCond %{HTTP_HOST} ^(?!((www\.)?validdomain|p1\.alsovalid)).*
    RewriteRule .* - [F]
    
  • osblues 8 posts 78 karma points
    Jul 19, 2018 @ 09:47
    osblues
    0

    Actually, I think my ISAPI_Rewrite rule was wrong.

    This might actually work -

    RewriteCond %{HTTP:Host} ^(?!((www\.)?validdomain|p1\.alsovalid)).*
    RewriteRule .* - [F]
    

    The rule I had was in ISAPI_Rewrite 2 format, rather than 3, so my mistake.

    I'll keep an eye on the logs and see if that stops the requests hitting Umbraco.

  • osblues 8 posts 78 karma points
    Jul 19, 2018 @ 09:57
    osblues
    0

    Obviously, this isn't a perfect solution, but if you have ISAPI_Rewrite at your disposal, you can use the above, or convert it to whatever rewrite module you do have.

    Early indications would suggest this is working and keeping my logs clear of requests for domains I don't want Umbraco to listen on.

    Hopefully, it might point some people in the right direction.

  • Richard Hamilton 79 posts 164 karma points
    Nov 26, 2018 @ 15:09
    Richard Hamilton
    0

    I am seeing this too in 7.12.3 and also domains that have nothing to do with this project.

  • Dan Diplo 1457 posts 5606 karma points MVP 3x c-trib
    Nov 26, 2018 @ 15:59
    Dan Diplo
    0

    Yep, I've seen this too. I've tweeted about this -> https://twitter.com/DanDiplo/status/1017469659216572416

    And this happens on a dedicated server (not a shared server) where I'm in complete control of IIS and none of these bindings are added to the site or are bound to the server IP.

    It probably needs an issue raising, but it's hard to reproduce.

Please Sign in or register to post replies

Write your reply to:

Draft