Learn about Centmin Mod LEMP Stack today
Register Now

Domains Whitelist .htaccess file when using option 2). Add Nginx vhost domain

Discussion in 'Install & Upgrades or Pre-Install Questions' started by EckyBrazzz, Apr 21, 2019.

  1. EckyBrazzz

    EckyBrazzz Active Member

    917
    190
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +363
    Local Time:
    3:07 PM
    Latest
    Latest
    Hi,


    I just set up a site that uses .htaccess files and wanted to know if I need to whitelist some .htaccess file when setting these sites up when using the
    Code (Text):
    2).  Add Nginx vhost domain
    option in centmin mod or is this only when using the option for WordPress based sites?
     
  2. EckyBrazzz

    EckyBrazzz Active Member

    917
    190
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +363
    Local Time:
    3:07 PM
    Latest
    Latest
    Just figerd out. It is
    Code (Text):
    #  include /usr/local/nginx/conf/autoprotect/domain.com/autoprotect-domain.com.conf;


    Afterward gona activate it again and find out what to whitelist
     
  3. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    4:07 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    yeah autoprotect is for all nginx vhosts not just wordpress :) So yes that is a good way of figuring out if you have .htaccess without visitor side issues by commenting out the include but letting it populate and report which directories in any have .htaccess files you need to take a closer look at :)
     
  4. EckyBrazzz

    EckyBrazzz Active Member

    917
    190
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +363
    Local Time:
    3:07 PM
    Latest
    Latest
    Again a great PLUS to use centmin mod.