• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Access files across domains

BobC

New Pleskian
Hello,

I have one domain that has a very large image directory.

I would like to access these images from that domain on my other domain web pages.

I do not want to create copies of this large directory in each domain.

Suggestions on how to do this?
I am okay with hotlinking to the directory as an option, but can't get it to work so far.

Ubuntu 18.04

Thank you.
 
I forgot to mention all of these domains are on the same server (same ip address)

Here is the structure:

example1.com/httpdocs...
example1.com/import_data... (where images reside)
example2.com/httpdocs
example3.com/httpdocs

If I place the image folder in example1/httpdocs/images. I can hotlink the images.
From example1.com i can link to the images folder with /var/www/vhosts/example1.com/import_data.
This does not work from example2.com or example3.com.

I would prefer not to hotlink, but if I have to I will move the images directly into example1.com/httpdocs.
 
Last edited:
Hello, @BobC

You can not share folder to another subscription, because each subscription has own user which has access only to his own folder.
But you can create some domains in one subscription, then your files structure will look like this:

/var/www/vhosts/example1.com/httpdocs - domain example1.com
/var/www/vhosts/example1.com/example2.com - domain example2.com

And for example, your images present in /var/www/vhosts/example1.com/httpdocs/images
and you want to access them from example2.com domain. Then you should create symlink:

ln -s /var/www/vhosts/example1.com/httpdocs/images /var/www/vhosts/example1.com/example2.com/other_images

Then you can access this images like this:
example1.com/images/image.png
example2.com/other_images/image.png
 
Back
Top