Git Product home page Git Product logo

appgatewayhostrewritemodule's People

Contributors

bomini avatar elenazarkova avatar gg3orgiev avatar tslazarov avatar yasen-yankov avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jordengit

appgatewayhostrewritemodule's Issues

.NET Core renderer Sitefinity URL redirects to App Service domain in v1.0.4

I have deployed a Sitefinity 14 installation to Azure as an App Service to do some testing of Sitefinity features prior to a commencing a client project. I have configured the App Service as per this documentation. This included installing version 1.0.4 of the App Gateway Host Rewrite Module (as an App Service extension).

I've then set up the .NET Core Renderer on my local machine and have specified the URL of the app service as the Sitefinity URL in appsettings.json, similar to the below:

{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  "AllowedHosts": "*",
  "Sitefinity": {
    "Url": "https://mysitefinityapp.azurewebsites.net",
    "WebServicePath": "api/default"
  }
}

When I run the .NET core renderer application I can browse the front end of the Sitefinity instance just fine at https://localhost:5001. However, when I enter https://localhost:5001/Sitefinity, the .NET core renderer is then redirected to https://mysitefinityapp.azurewebsites.net/Sitefinity and all Sitefinity interaction from that point on continues on the app service URL rather than the .NET core renderer URL.

I battled with this for some time and then decided to try downgrading the App Gateway Host Rewrite Module to version 1.0.3. To my surprise, with version 1.0.3 in place, https://localhost:5001/Sitefinity no longer redirected to the app service domain and I was able to use my .NET core renderer URL to interact with Sitefinity from that point on.

So I am wondering, is there a bug with v1.0.4 of the rewrite module that is causing the redirection to take place? Or is there some other configuration I have missed in my App Service or .NET Core Renderer setup?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.