Okay, I'm still trying different things here. Now in the parameters I have:
Code: |
Deployment Folder: Blank
Media Folder: {rel_site_dir}/images
Image Folder: {rel_site_dir}/images/stories
|
When I create a new slave using these parameters the Global Config values read:
Code: |
Media Folder: multisites/slave1/images
Image Folder: multisites/slave1/images/stories
|
Using Media Manager shows me the contents of the correct (multisites/slave1/images/stories) folder. However using the JCE image manager shows me the images/stories folder from the master site.
Next I tried the following settings:
Code: |
Deployment Folder: {site_dir}
Media Folder: images
Images Folder: images/stories
|
This gave me the same results as above - images are uploaded (and linked) to the images folder of the master site, even though the URLs read http:// slave1.com/images/stories/image1.jpg. And the path in the media manager reads: /var/www/vhosts/mastersite.com/httpdocs/multisites/slave1.com/images/stories.
I've also tried setting up a template with the following settings:
Code: |
Deployment Folder: {site_dir}
Media Folder: {rel_site_dir}/images
Image Folder: {rel_site_dir}/images/stories
|
However this returns the following error when I try to create a site: Unable to create the symbolic link [multisites] -> [/var/www/vhosts/mastersite.com/httpdocs/multisites].
One other thing I've discovered, and I'm not sure if this is related or if it's supposed to be this way: When I go to the Multisites component on one of the slave sites, I get a warning that "Some patches are not installed". Checking the patches shows an error on the configuration.php file:
Code: |
Not OK
The routing wrapper is not present in this MASTER configuration file.
Actions:
Add 16 lines containing the routing wrapper to the slave site.
|
But the option to install patches is not available. Not sure if this is a problem or not.
If I understand this right, the Multisites component is supposed to rewrite all URLs pointing to a slave domain to that domain's deployed directory, in my case under /multisites. So I should be able to write links on my pages as "images/stories/image1.jpg" and not have to include the full "multisites/slave1/images/stories/image1.jpg", right?