Directory alias to get files from other domain

Hi, I need that any call to https://domain2.com/media/* get the files from domain1

This is for share server resources, like images, between two differents domains (domain1 and domain2) for a same Hestia CP user (userx).

I’m trying to modify /home/userx/conf/web/domain2/apache2.ssl.conf adding something like this, but doesn’t works:

Alias /media/ /home/userx/web/domain1.com/public_html/media/
<Directory /home/userx/web/domain1.com/public_html/media/>
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride all

Any idea?