-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serve static content of web application to all tenants #6505
Comments
Does something like this help? https://medium.com/rtl-tech/building-multi-tenant-asp-net-core-applications-with-orchard-core-dffb404558c3 |
@remesq Yes, currently if you have static file For all other tenants it returns 404 . i.e. |
When static contents are added to web application
wwwroot
which are not embedded in assembly - i.e. static content added by Blazor web assembly or static css, javascript or images etc,app.UseStaticFiles()
only serves content forDefault
tenant.In multi-tenant scenario, If there is
'wwwroot/appfile1.html'
and haveDefault
,tenant1
,tenant2
then it should serveappfile1.html
to all tenants relative to tenant prefix.i.e. for default tenant
appfile1.html
should be served with url/appfile1.html
and fortenant1
andtenant2
served with url/tenant1/appfile1.html
and/tenant2/appfile1.html
.Ref issue # #6474 (comment)
/cc @jtkech
The text was updated successfully, but these errors were encountered: