• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Question Obtain status of HTST with SSL/It of domain via command line

Server operating system version
Ubuntu 22.04
Plesk version and microupdate number
Plesk Obsidian 18.0.75
HI:

I want to check what domains have active HSTS, but the command of "plesk ext sslit", only active o disable the optionj, and i cant check if is enabled or not¿?

I have tried whit the command: grep -i strict-transport-security /var/www/vhosts/system/*/conf/nginx.conf and i see what is enabled, but not what is disabled

Somebody can help me¿?

Thanks!
 
To my knowledge there is no Plesk utility or build-in option to retrieve the HSTS status. I suspect that's because the status is only stored in the domain's nginx configuration. What you can do instead is use a bash/shell command to loop trough all domains and perform a grep search on the corresponding configuration file of the domain. Something like:

Code:
plesk bin domain -l | while read dom_name; do if ! grep -qi strict-transport-security /var/www/vhosts/system/$dom_name/conf/nginx.conf; then echo $dom_name; fi; done
 
Hi @Kaspar

Thanks for the command line to fine the HSTS dont actived.

Yes, i see that dont have that option, but is a good option to find the domain, because, i have server that dont have nginx, and the command failed, because only find in conf of nginx, but, i see that apache can check with this command: grep -ri --exclude='*.bak' 'strict-transport-security' /var/www/vhosts/system/*/conf/

Thanks!
 
Back
Top