Discover Centmin Mod today
Register Now

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:
    4:07 AM
    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

    30,945
    6,914
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,411
    Local Time:
    3:07 AM
    Nginx 1.13.x
    MariaDB 5.5
    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
     
    • Informative Informative x 1