Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- location = /wp-login.php {
- auth_basic "Admin Seguro";
- auth_basic_user_file /etc/nginx/.htpasswd;
- limit_req zone=one burst=1 nodelay;
- try_files $uri =404;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass unix:<tmpl_var name='fpm_socket'>;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- if ($allowed_country = no) {
- return 403;
- }
- }
- location /wp-admin {
- auth_basic "Admin Seguro";
- auth_basic_user_file /etc/nginx/.htpasswd;
- if ($allowed_country = no) {
- return 403;
- }
- }
Add Comment
Please, Sign In to add comment