• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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