Copied to clipboard

Flag this post as spam?

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


  • Andy Felton 185 posts 484 karma points c-trib
    Jun 11, 2019 @ 16:45
    Andy Felton
    0

    Preview not working on load balanced environment

    Hi,

    We're using Umbraco on a load balanced environment (AWS). We've configured our load balancer so all traffic with a path starting /umbraco is treated as back office and therefore rooted to our single back office server, all other traffic is rooted to our load balanced servers.

    This appeared to be working OK but only recently we've spotted preview is broken, the issue here is that the preview page uses an iframe which (through redirects) the src URL ends up without the /umbraco path (see line 37 of \umbraco.presentation\umbraco\dialogs\Preview.aspx.cs) and therefore is rooted to the load balanced servers which don't have the preview data.

    Preview.aspx.cs line 37
    
    Response.Redirect("../../" + d.Id.ToString(CultureInfo.InvariantCulture) + ".aspx", true);
    

    The alternative is we host back office traffic on a different sub-domain, the solution we had we believe is more simple and only requires a single SSL. Does this look like a issue that should be looked at and raised on Umbraco issues?

    Thanks

    Andy

Please Sign in or register to post replies

Write your reply to:

Draft