• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Issue Symlink not working

waseem

Basic Pleskian
HI,
I am trying to create symlink in plesk 12 but no success, detail is as follows
Plesk:- v12
PHP:- 7
APache with Nginx as reverse Proxy,FPM Application Served By Apache
OS:- Ubuntun v 14

What i want:- i want to symlink domain2.com to domain1.com so if i type domain2.com in browser it should show content of domain1.com (i want the link to be domain2.com in browser for some reasons)

Steps

  1. I created two domains, domain1.com and domain2.com
  2. i remove all contents from domain2.com
  3. i use following code to create symlink ln -s /var/www/vhosts/domain1.com/httpdocs/ /var/www/vhosts/domain2.com/httpdocs/
  4. i use following code in Additional directives for HTTP
Alias /var/www/vhosts/domain1.com/httpdocs/ /var/www/vhosts/domain2.com/httpdocs/
<Directory /var/www/vhosts/domain2.com/httpdocs/>
Options +ExecCGI +FollowSymlinks
</Directory>

But No Luck
.
Kindly suggest me what to do
 
Hi waseem,
add the second domain as an alias of the first, you can either do a 301 redirect to domain1 or show the content.

Plesk > Subscriptions > domain1.tld > Add Domain Alias

I hope that helps
Regards

Lloyd
 
Hi, ok now to tell you in detail that why i need this
i am using letsencrypt for SSL,
i have two domains , i am using 2nd domain as cdn for first domain, this is not actual cdn, it is just for parallel downloading across host names , if i use domain aliases and i enable ssl for 1st domain than domain aliases is useless as letsencrypt in plesk is not supporting SSL and domain2.com automatically redirect to domain1.com irrespective of aliases,
So i want to add them as different domains, i will symlink them i will enable ssl on both (for free :) ) so i will achieve ssl and cdn both at a time .

Best Regards
 
Back
Top