Learn about Centmin Mod LEMP Stack today
Become a Member

Beta Branch update inc/wpsetup.inc add support for wpwhitelist_common.conf includ…

Discussion in 'Centmin Mod Github Commits' started by eva2000, Sep 12, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    28,942
    6,570
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,750
    Local Time:
    3:33 AM
    Nginx 1.13.x
    MariaDB 5.5
    update inc/wpsetup.inc add support for wpwhitelist_common.conf include file in 123.09beta01

    For centmin.sh menu option 22 created Wordpress install site, a /usr/local/nginx/conf/wpincludes/${vhostname}/wpsecure_${vhostname}.conf include file is inserted into site's nginx vhost files. Where ${vhostname} is yourdomain.com name. This file whitelists certain Wordpress plugins which require php processing ability in their respective directories instead of the wpsecure_${vhostname}.conf set deny all directives. There are match whitelisted location matches for commonly known Wordpress plugins. But if you want to add more settings to each location match whitelisted entry and they are common or same to all, it's a time consuming task.

    So added support for /usr/local/nginx/conf/wpincludes/${vhostname}/wpwhitelist_common.conf include file common to each whitelisted location match entry in /usr/local/nginx/conf/wpincludes/${vhostname}/wpsecure_${vhostname}.conf. It's commented out and disabled by default. The wpwhitelist_common.conf file needs to be manually created at that path and to be uncommented # by removing the hash # in front and nginx server restarted to take effect.

    Code (Text):
    #include /usr/local/nginx/conf/wpincludes/${vhostname}/wpwhitelist_common.conf;
    


    Continue reading...

    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    28,942
    6,570
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,750
    Local Time:
    3:33 AM
    Nginx 1.13.x
    MariaDB 5.5