How to disable SSL for all domains on required IP address

Refers to:

  • Plesk 12.5 for Linux

Created:

2016-11-16 12:49:31 UTC

Modified:

2016-12-21 19:18:31 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to disable SSL for all domains on required IP address

Question

How to disable SSL for all domains on required IP address?

Resolution

  1. Dump all the domain's names that have required IP to file:

      # mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -Ne"select domains.name from DomainServices inner join IpAddressesCollections on IpAddressesCollections.ipCollectionId=DomainServices.ipCollectionId inner join domains on DomainServices.dom_id=domains.id inner join IP_Addresses on IP_Addresses.id=IpAddressesCollections.ipAddressId where type='web' and ip_address='123.123.123.123'" > /root/domains.list

    change 123.123.123.123 to required IP address.

  2. Disable SSL option on all domains from list:

      # cat /root/domains.list | while read dom; do /usr/local/psa/bin/domain -u $dom -ssl false;done
Have more questions? Submit a request
Please sign in to leave a comment.