I'm trying to achieve the following result:
I have multiple domains pointing to the same documentroot, which contain files that are being used on all domains (index.php, css files, and such):
C:/cms/
Then I have several domains:
- www.domain1.com/*
- fr.domain1.com/*
Should both point to D:/files/domain1.com/*
- www.domain2.com/*
- de.domain2.com/*
Should both point to D:/files/domain2.com/*
However
- www.domain1.com/adminstyle.css
- fr.domain1.com/adminstyle.css
- www.domain2.com/adminstyle.css
- de.domain2.com/adminstyle.css
Should all point to C:/cms/adminstyle.css (If A file is not found in the "per domain" directory, it should fall back to the "general" directory)
Is this possible with apache? I've been messing around with virtual hosts/directories and aliases but without succes yet.