• 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.

Question Custom Vhost file not working for SSL

Qau mana

New Pleskian
Hi guys, I have this domain on plesk /var/www/vhosts/system/xxxxxxx.com/conf/httpd.conf. I cannot edit it because it says that
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
#IF YOU REQUIRE TO APPLY CUSTOM MODIFICATIONS, PERFORM THEM IN THE FOLLOWING FILES:
#/var/www/vhosts/system/xxxx.com/conf/vhost.conf
#/var/www/vhosts/system/xxxxx.com/conf/vhost_ssl.conf
I have tried /var/www/vhosts/system/xxxxxxxxxxx.com/conf/vhost.conf and this /var/www/vhosts/system/xxxxxxxxx.com/conf/xxxxxxx.com.conf. I have also tried /var/www/vhosts/system/xxxxx.com/conf/vhost_ssl.conf and /var/www/vhosts/system/xxxxx.com/conf/xxxxxx.com_ssl.conf. But nothing is working if i change the main plesk file then SSL certificates are working. Currently plesk is running on 12.5.30 Update #59, last updated at Jan 31, 2017 03:13 AM. CentOS 6.8 (Final)‬. If the plesk is updated to some other 12 version, then Is this configuration file will get replace? It would be great if some one could help me out in finding the solution. Many thanks!
 
What exactly is the change to the vhost configuration that you require?
Hi Peter,
Thanks, I have done changes in this file /var/www/vhosts/system/xxxxxx.com/conf/httpd.conf. The changes are
#SSLCertificateFile /usr/local/psa/var/certificates/certzbLwc8d
SSLCACertificateFile /root/certificates/gs_root.pem
SSLCertificateChainFile /root/certificates/intermediate.pem
SSLCertificateFile /root/certificates/www.xxxx.com.crt
SSLCertificateKeyFile /root/www.xxxxx.com.key
 
So this is nothing more than a normal certificate installation. I suggest to not to modify the configuraton file directly for that. Instead, use the GUI "SSL/TLS" function to upload the certificate, because that will make sure that anytime the domain is reconfigured, the correct certificate settings are placed into the configuration file.

GUI > Tab "Websites & Domains" > Icon "SSL/TLS Certificates" > Link "Add SSL/TLS Certificate"

Scroll down a little to the sections where you can either upload your private key, certificate and ca certificate files or copy & paste the content of your certificate files into the text areas. Then click "Upload Certificate" underneath the form.
 
Back
Top