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

Master Branch update centmin.sh menu option 22 wpsecure template in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Nov 13, 2020.

  1. eva2000

    eva2000 Administrator Staff Member

    45,633
    10,356
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,070
    Local Time:
    10:02 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    update centmin.sh menu option 22 wpsecure template in 123.09beta01

    Add support for Tools Export Personal Data Screen Wordpress - Support for WordPress personal data exports for fresh centmin.sh menu option 22 installs only. Existing installs would need to manually add them to their specific wpsecure include file at /usr/local/nginx/conf/wpincludes/${vhostname}/wpsecure_${vhostname}.conf where ${vhostname} is your domain.com for Wordpress site

    find line at end
    Code (Text):
    location ~* ^/(wp-content)/(.*?)\.(zip|gz|tar|bzip2|7z)$ { deny all; }


    and add above it
    Code (Text):
    location /wp-content/uploads/wp-personal-data-exports/ {
      location ~ ^/wp-content/uploads/wp-personal-data-exports/(.+/)?(.+)\.(zip)$ { allow all; expires 30d; }
    }

    then restart nginx service

    Continue reading...

    Centmin Mod Github Master branch

    Master branch is where most recent commits are made as at May 24, 2015.