]> Nutra Git (v1) - nutratech/vps-root.git/commitdiff
remove restrictions, still broken tho
authornutra-bot <nutradigest@gmail.com>
Mon, 27 Jun 2022 16:39:37 +0000 (16:39 +0000)
committernutra-bot <nutradigest@gmail.com>
Mon, 27 Jun 2022 16:39:37 +0000 (16:39 +0000)
etc/nginx/conf.d/restrictions.conf [deleted file]
etc/nginx/sites-available/default

diff --git a/etc/nginx/conf.d/restrictions.conf b/etc/nginx/conf.d/restrictions.conf
deleted file mode 100644 (file)
index c098d26..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-# Global restrictions configuration file.
-# Designed to be included in any server {} block.
-location = /favicon.ico {
-    log_not_found off;
-    access_log off;
-}
-location = /robots.txt {
-    allow all;
-    log_not_found off;
-    access_log off;
-}
-# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
-# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)
-location ~ /\. {
-    deny all;
-}
-# Deny access to any files with a .php extension in the uploads directory
-# Works in sub-directory installs and also in multisite network
-# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)
-location ~* /(?:uploads|files)/.*\.php$ {
-    deny all;
-}
index 77e721fc4420932c614833a013ba66b089bc69d4..a59cd2a2c4473704dc8a62b295df1e62a3833e42 100644 (file)
@@ -61,7 +61,7 @@ server {
     # Additional rules go here.
  
     # Only include one of the files below.
-    include wordpress.conf;
+    include conf.d/wordpress.conf;
 #    include global/wordpress-ms-subdir.conf;
 #    include global/wordpress-ms-subdomain.conf;
 }