Comments (4)
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.
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.
Kooboo should be configured like below to listen on port 81.
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.
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)
- How can I use ecommerce section within Kooboo code
- Pros and Cons of Kooboo Database vs other Databases
- How I can send an email with kScript? HOT 1
- An item with the same key has already been added. Key: commerce HOT 2
- Nested layouts will auto gen nested <html> tag inside <html> tag issue
- MySQL > Add more than 3 columns with TEXT type > MySQL error: Row size too large HOT 2
- k.response.redirect("/relativepath") should use BaseURL/current instead of actual Kestrel running port
- Endless loop error when using Revert Proxy (Nginx) from HTTPS (port 80) to Kestrel HTTP (port 81) with "Force SSL" setting ON
- Is it possible to "import JS file or Module" from kScript? HOT 4
- K_Script_data_source quite buggy
- 用户文档里说的模板要怎么加载,总是报connection refused.
- Documentation link is broken
- Error when call GetUser api
- In the new version, there is no "Convert to" item in the menu.
- Unable to change language
- 调用外部dll
- ParentId of embeded content is not getting saved
- Embedded content orderby should be by sequence not by LastModified
- Pick up templates is broken
- English version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kooboo.