Join the community today
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

    121
    14
    18
    Apr 3, 2017
    Ratings:
    +17
    Local Time:
    3:23 PM
    Hi,


    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

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    2:23 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