• 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

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