• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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