We use a self-hosted CDN (proftpd on Ubuntu 20.04) and have, among others, a WordPress multisite network (example.org) that has both path-based and domain-based sites:
example.org (entry site)
example.org/acme/ (local sites, e.g. for a town)
example-acme.org (regional sites, e.g. for districts)
Unfortunately the "self-hosted CDN" feature of W3 Total Cache doesn't seem to support multisites properly:
There is no option to upload all media files for all sites.
Attachment links are replaced, even if "Host attachments is disabled (due to "Use single network configuration file for all sites").
The CDN links don't account for the site paths or domains, so that the following all link to the same (missing) CDN file (https://cdn.example.org/files/2020/example.jpg):
https://example.org/files/2020/example.jpg
https://example.org/acme/files/2020/example.jpg
https://example-acme.org/files/2020/example.jpg
Note that we have "Use single network configuration file for all sites" enabled, because most of our site users don't have the knowledge to setup a CDN themselves, and we want to provide a single CDN for everyone.
We use a self-hosted CDN (proftpd on Ubuntu 20.04) and have, among others, a WordPress multisite network (
example.org
) that has both path-based and domain-based sites:example.org
(entry site)example.org/acme/
(local sites, e.g. for a town)example-acme.org
(regional sites, e.g. for districts)Unfortunately the "self-hosted CDN" feature of W3 Total Cache doesn't seem to support multisites properly:
https://cdn.example.org/files/2020/example.jpg
):https://example.org/files/2020/example.jpg
https://example.org/acme/files/2020/example.jpg
https://example-acme.org/files/2020/example.jpg
Note that we have "Use single network configuration file for all sites" enabled, because most of our site users don't have the knowledge to setup a CDN themselves, and we want to provide a single CDN for everyone.