Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
litespeed_wiki:config:wordpress-protection [2019/04/30 20:28]
Lisa Clarke [WordPress Protection Block Never Seems to Expire] Proofreading
litespeed_wiki:config:wordpress-protection [2019/11/12 19:27]
qtwrk
Line 102: Line 102:
 |5|10|not set|10| |5|10|not set|10|
 |5|10|20|10| |5|10|20|10|
 +
 +===== How to Enable LSWS WordPressProtect Feature on Plesk =====
 +
 +Everything should be same as cPanel , only some difference on where to place the directives:
 +
 +Server-Level configuration:​
 +
 +edit file `/​usr/​local/​psa/​admin/​conf/​templates/​custom/​domain/​domainVirtualHost.php`
 +
 +There are **two** block of following code:
 +
 +<​code><​IfModule Litespeed>​
 +CacheRoot lscache
 +</​IfModule></​code>​
 +
 +We can insert the code here , make it like:
 +
 +<​code><​IfModule Litespeed>​
 +CacheRoot lscache
 +WordPressProtect throttle, 5
 +</​IfModule></​code>​
 +
 +This will override the default server-level setting from 10 to 5, then run ''/​usr/​local/​psa/​admin/​sbin/​httpdmng --reconfigure-all''​ to regenerate the configuration file , then ''/​usr/​local/​lsws/​bin/​lswsctrl restart''​ to restart LSWS to take effect.
 +
 +Vhost-level setting:
 +
 +In Plesk domain page , as screenshot , go to ''​Apache & nginx Settings''​ , add directive in ''​Additional directives for HTTP''​ and ''​Additional directives for HTTPS''​ then click on **OK** or **Apply** to save it.
 +
 +<​code><​IfModule Litespeed>​
 +WordPressProtect throttle, 5
 +</​IfModule></​code>​
 +
 +Plesk user can also use `.htaccess` to override the server-level setting as above example.
 +
  
 ===== Real Testing===== ===== Real Testing=====
  • Admin
  • Last modified: 2020/01/23 19:37
  • by George Wang