Code Monkey home page Code Monkey logo

Comments (4)

koobooteam avatar koobooteam commented on June 6, 2024

Hi Huy,

The new Kooboo use Kestrel WebServer, which is a self-hosted application. To run it behind IIS, you need to configure "Reverse Proxy".

See: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-5.0

from kooboo.

Smilefounder avatar Smilefounder commented on June 6, 2024

Hi @koobooteam / Guoqi Zheng

Thanks for the confirmation. I have configured Reverse Proxy, However there is an issue with Reverse Proxy that if Kooboo.App is run with a different port than 80.

For example,

  • Kestrel running port is 81.
  • Site domain A Reverse Proxy to 127.0.0.1:81
  • Site domain B Reverse Proxy to 127.0.0.1:81
  • Add HomePage with URL / to both domains (A & B)

The result:

  • Access both sites will lead you to the login page instead of displaying the HomePage for each site
  • Add a binding domain for port 81, then both sides will display only 1 and same HomePage

Kindly help advice.
Thanks for the great work so far!

from kooboo.

koobooteam avatar koobooteam commented on June 6, 2024

Kooboo should be configured like below to listen on port 81.

config_port

if still problem. Zip the AppData folder, and send it to my email(you got my email), then I will look into your configuration.

from kooboo.

Smilefounder avatar Smilefounder commented on June 6, 2024

Thanks @koobooteam I found the root cause. It is because IIS not forward the host information so it always the same

Fixed by run the following command to force IIS to not change the Host header.
\Windows\System32\inetsrv\appcmd.exe set config -section:system.webServer/proxy -preserveHostHeader:true /commit:apphost

from kooboo.

Related Issues (20)

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.