In cPanel, I'm aware how to set document roots for domains, but I'm trying to have different document roots for a domain depending on the subdirectory.
URL | Document Root example.com | home/public_html/splash example.com/foo | home/public_html/apples example.com/bar | home/public_html/oranges foo.com | home/public_html/splash foo.com/foo | home/public_html/apples foo.com/bar | home/public_html/oranges
As you can see, there may be multiple domains that use the same subdirectory => document root scheme.
Any recommendations?
DocumentRoot
per subdirectory. The document root is, by definition, the root of all documents for a particular host and is defined in your server config (only). What is it you are trying to achieve?