• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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