Explorar el Código

nginx uploads dir safe config

Logig hace 7 años
padre
commit
9aac6b78fd
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      config/wordpress.conf

+ 3 - 0
config/wordpress.conf

@@ -2,3 +2,6 @@ location / {
   try_files $uri $uri/ /index.php?$args;
 }
 rewrite /wp-admin$ $scheme://$host$uri/ permanent;
+location ~* ^/wp-content/uploads/.*\.php$ {
+  deny all;
+}