• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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