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

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

Discussion in 'Centmin Mod Github Commits' started by eva2000, Oct 29, 2020.

  1. eva2000

    eva2000 Administrator Staff Member

    45,728
    10,382
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,112
    Local Time:
    12:34 AM
    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...

    123.09beta01 branch