Umbraco-CMS
Umbraco-CMS copied to clipboard
Deploy Umbraco as a child IIS application not working #11891
Prerequisites
Added variable "basePath" to generate virtual path of URL for a hosted Umbraco-Application under IIS
- [x] I have added steps to test this contribution in the description below
If there's an existing issue for this PR then this fixes https://github.com/umbraco/Umbraco-CMS/issues/11891
Description
To enable the child application support, the ApplicationVirtualPath
and UmbracoApplicationUrl
setting was set in the appSettings.json
"Umbraco": {
"CMS": {
"WebRouting": {
"UmbracoApplicationUrl": "http://localhost/"
},
"Hosting": {
"Debug": false,
"ApplicationVirtualPath": "/cms/"
}
Steps to reproduce In IIS
1 - Create your web site (.net core 5) and set the location to a directory not being Umbraco. Create an application pool with the "No Managed Code" and assign it to the site.
2 - Create a child application to your web site and name it cms. Set the location to the Umbraco client application. Create an application pool with the "No Managed Code" and assign it to the site.
3 - Open the appSettings.json
and set the ApplicationVirtualPath
to either /cms
or /cms/
.
4 - Open the appSettings.json
and set the UmbracoApplicationUrl
to http://localhost/
.
5 - Try to browse to the backoffice: http://[your web site/cms/Umbraco#
.
Hi there @a-t-k, thank you for this contribution! 👍
While we wait for one of the Core Collaborators team to have a look at your work, we wanted to let you know about that we have a checklist for some of the things we will consider during review:
- It's clear what problem this is solving, there's a connected issue or a description of what the changes do and how to test them
- The automated tests all pass (see "Checks" tab on this PR)
- The level of security for this contribution is the same or improved
- The level of performance for this contribution is the same or improved
- Avoids creating breaking changes; note that behavioral changes might also be perceived as breaking
- If this is a new feature, Umbraco HQ provided guidance on the implementation beforehand
- [ ] 💡 The contribution looks original and the contributor is presumably allowed to share it
Don't worry if you got something wrong. We like to think of a pull request as the start of a conversation, we're happy to provide guidance on improving your contribution.
If you realize that you might want to make some changes then you can do that by adding new commits to the branch you created for this work and pushing new commits. They should then automatically show up as updates to this pull request.
Thanks, from your friendly Umbraco GitHub bot 🤖 🙂
I'm bumping this because I really need this feature
I might was well chime in and say that I'm also in need of this feature too, although we're on v10.