• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Using symlink for subdomain

  • Thread starter michaelespinosa
  • Start date
M

michaelespinosa

Guest
I have a example.com and assets.example.com - I want assets.example.com come to serve the files at example.com/assets/. I created the subdomain in Plesk then went in did a symlink on the subdomains httpdocs directory to example.com/assets. When I load the assets.example.com I get a 403 forbidden. I am doing it wrong? Is there a better way? Thanks in advance for any help.
 
Is it a php site? Most likely if you check your error log it'll say "Open base dir restriction etc. Access Denied" you'll need to modify your apache setup (check the forum/google open_base_dir) to remove the open_base_dir restriction or change the definition such that /var/www/vhosts/domain.com/httpdocs is one of the paths avaialbe to /var/www/vhosts/domain.com/subdomains/assets/httpdocs

If it's not open_base_dir you'll need to say what the error is that apperas in your apache access log (Desktop->Start->LogAdmin) so someone here can point you in the right direction

hth

AD
 
Back
Top