Guest User

Untitled

a guest
Aug 14th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. location = /wp-login.php {
  2. auth_basic "Admin Seguro";
  3. auth_basic_user_file /etc/nginx/.htpasswd;
  4. limit_req zone=one burst=1 nodelay;
  5. try_files $uri =404;
  6. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  7. fastcgi_pass unix:<tmpl_var name='fpm_socket'>;
  8. fastcgi_index index.php;
  9. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  10. include fastcgi_params;
  11. if ($allowed_country = no) {
  12. return 403;
  13. }
  14. }
  15.  
  16. location /wp-admin {
  17. auth_basic "Admin Seguro";
  18. auth_basic_user_file /etc/nginx/.htpasswd;
  19. if ($allowed_country = no) {
  20. return 403;
  21. }
  22. }
Add Comment
Please, Sign In to add comment