Address issue #319 - again, not standardlize yet for the release

This commit is contained in:
Argus Duong
2020-10-13 23:54:11 +07:00
parent e2dc4bdc27
commit e163bc7717
4 changed files with 52 additions and 12 deletions

View File

@@ -45,7 +45,7 @@ location /wp-content/uploads {
access_log off;
log_not_found off;
expires max;
try_files $uri$image_suffix $uri =404;
try_files $uri$avif_suffix $uri$webp_suffix $uri =404;
}
location ~* \.(php|gz|log|zip|tar|rar|xz)$ {
#Prevent Direct Access Of PHP Files & Backups from Web Browsers
@@ -61,7 +61,7 @@ location /wp-content/plugins/ewww-image-optimizer/images {
access_log off;
log_not_found off;
expires max;
try_files $uri$image_suffix $uri =404;
try_files $uri$avif_suffix $uri$webp_suffix $uri =404;
}
location ~ \.php$ {
#Prevent Direct Access Of PHP Files From Web Browsers