Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.The current way of saving the configuration for subdirs makes it impossible to generate configuration for sites in multi-level subdirectories.
This patch changes the file names so that it's possible to generate the configuration files, which seems to do the trick.
In order to make this work on the frontend, #2718715: Allow sites to be put in multi-level sub directories needs to be applied
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 0001-Issue-2718711-Allow-sites-to-be-put-in-multi-level-s.patch | 19.25 KB | omega8cc |
| provision-allow-multiple-subdirs.patch | 597 bytes | fabsor |











Comments
Comment #2
fabsor CreditAttribution: fabsor commentedComment #3
omega8cc CreditAttribution: omega8cc commentedHmm.. Have you tested how it will affect this logic?
Comment #4
fabsor CreditAttribution: fabsor commentedYes, that should still be there in order to generate the proper path in the configuration files, where we want to generate, like "Location /foo/bar"
The only issue that's blocking the current implementation from working with multi-level subdirs is that the configuration file is generated in the wrong location, since we have more than one / in the path. just replacing any / with _ in the path fixes that problem and from what I can see it seems to do the trick.
We are currently working on rolling this functionality out to a rather large aegir installation (100+ university sites). It's not done yet, so if you want to get some more test data, we can set this to postponed and I can get back to you when we know how it works out :)
Comment #5
omega8cc CreditAttribution: omega8cc commentedOK, I will test this, but note that the patch is for Apache only. We need the same patch for
provision/http/Provision/Config/Nginx/Subdir.phpComment #6
omega8cc CreditAttribution: omega8cc commentedAttached more complete patch to support also Nginx.
Comment #8
omega8cc CreditAttribution: omega8cc commentedNow it works! Thank you!