Get the most out of your Centmin Mod LEMP stack
Become a Member

Nginx htaccess wp login screen bypass by IP

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by joshuah, Jul 7, 2017.

  1. joshuah

    joshuah Member

    Apr 3, 2017
    Local Time:
    11:08 PM

    Is it possible to have some kind of global config file for all websites added via option 22 (that has htaccess protection).. so that it will NOT prompt for the username and password for a certain IP address?

    As an example, I manage several wordpress websites, and I want to be able to access the wordpress backend without entering the username and password (I know I can bookmark it). I have a static IP address, so having some kind of wordpress htaccess bypass configuration file would be awesome!
  2. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    11:08 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Possible I believe, check out example under Combining Basic Authentication with Access Restriction by IP Address at Restricting Access with HTTP Basic Authentication - NGINX via satisfy any directive Module ngx_http_core_module