You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now there's a built-in assumption that a Silverstripe CMS project will be run on an Apache webserver.
There are .htaccess files in recipe core, one of which gets updated based on the allowed file types.
We should remove the assumption that the project will be run on Apache. This includes ensuring any configuration is webserver-agnostic, so that developers can spin up a Silverstripe CMS project in any PHP webserver without having to add a bunch of framework-specific configuration.
I think the best way to remove the assumption it only runs on Apache, is to supply detailed configuration instructions and configuration files. Crowd-source it, allow free contributions to the docs, while insisting on line-by-line comments indicating what each one does and why it is necessary
The challenge to overcome (I think) is that if this goes ahead, we are suddenly booting the app a lot more often, to handle things like restricted file extensions, by default. Yes, proper documentation will help (i.e. if using Nginx, for best performance, please create this file in this place blah blah) but it will be counter-intuitive (for old Silverstripers, anyway) for a change to config (allowed_file_types or whatever) to not have the effect at the server config level.
I think that's actually a good thing - I'd prefer that to be managed by a SysAdmin, and have the app as a backup plan/safety valve, but it'll need to be clearly spelled out. There'll be times when doing the major upgrade that this requires will introduce security holes, and that needs to be considered carefully.
Right now there's a built-in assumption that a Silverstripe CMS project will be run on an Apache webserver.
There are
.htaccess
files in recipe core, one of which gets updated based on the allowed file types.We should remove the assumption that the project will be run on Apache. This includes ensuring any configuration is webserver-agnostic, so that developers can spin up a Silverstripe CMS project in any PHP webserver without having to add a bunch of framework-specific configuration.
Possibly related issues
.htaccess
doesn't get installed when using the public webroot recipe-core#50Acceptance criteria
.htaccess
files are removedThe text was updated successfully, but these errors were encountered: