1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Using symlink for subdomain

Discussion in 'Plesk for Linux - 8.x and Older' started by michaelespinosa, Dec 4, 2009.

  1. michaelespinosa

    michaelespinosa Guest

    0
     
    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.
     
  2. AD7six

    AD7six Guest

    0
     
    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
     
Loading...