Monthly Archive: July 2022

19
Jul
2022

htpasswd用法

https://www.cnblogs.com/zhenmingliu/archive/2012/12/27/2836424.html apache htpasswd命令用法   htpasswd [-cmdpsD] passwordfile username   htpasswd -b[cmdpsD] passwordfile username password   htpasswd -n[mdps] username   htpasswd -nb[mdps] username password apache htpasswd命令选项参数说明   -c  创建一个加密文件   -n  不更新加密文件,只将apache htpasswd命令加密后的用户名密码显示在屏幕上...

13
Jul
2022

WordPress 禁止xmlrpc.php和限制wp-login.php

location = /xmlrpc.php { deny all; } location ~ .php$ {location ~ \wp-login.php$ {allow 142.114.32.87;deny all;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;include fastcgi_params;fastcgi_intercept_errors on;fastcgi_pass unix:/run/php-fpm/www.sock;}include fastcgi_params;fastcgi_intercept_errors on;fastcgi_pass unix:/run/php-fpm/www.sock; }