- Plesk for Linux
While using Administrative Interface button for an application (for example for Drupal) via Domains > example.com > Applications > Drupal, the very first POST request is sent via HTTP.
When the installation was performed, HTTP was selected.
By design, all links in the Applications are using either HTTP or HTTPS based on what was selected in the first place:
It is possible to adjust this selection by modifying the database. For that,
- Log into the server via SSH.
- Create a backup of Plesk database:
# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysqldump psa -uadmin > psa.current.sql
- Find the domain's ID by executing the following command replacing example.com with the actual domain's name:
# plesk db "SELECT id FROM domains WHERE name='example.com'"
| id |
| 3 |
- Update the apsContexts settings end enable SSL by using the ID from step 2:
# plesk db "UPDATE apsContexts SET `ssl` = 'true' WHERE pleskId=3 and pleskType='hosting'"