Address issue #319

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

View File

@@ -45,7 +45,7 @@ location /wp-content/uploads {
access_log off;
log_not_found off;
expires max;
try_files $uri$avif_suffix $uri$webp_suffix $uri =404;
try_files $uri$image_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$webp_suffix $uri =404;
try_files $uri$image_suffix $uri =404;
}
location ~ \.php$ {
#Prevent Direct Access Of PHP Files From Web Browsers