iThemes Security creates public nginx.conf file
-
Hello!
iThemes Security created the file nginx.conf file in the wordpress main directory with this content:
# BEGIN iThemes Security - Do not modify or remove this line # iThemes Security Config Details: 2 # Protect System Files - Security > Settings > System Tweaks > System Files location = /wp-admin/install.php { deny all; } location = /nginx.conf { deny all; } location ~ /\.htaccess$ { deny all; } location ~ /readme\.html$ { deny all; } location ~ /readme\.txt$ { deny all; } location ~ /wp-config.php$ { deny all; } location ~ ^/wp-admin/includes/ { deny all; } location ~ ^/wp-includes/[^/]+\.php$ { deny all; } location ~ ^/wp-includes/js/tinymce/langs/.+\.php$ { deny all; } location ~ ^/wp-includes/theme-compat/ { deny all; } location ~ ^.*/\.git/.*$ { deny all; } location ~ ^.*/\.svn/.*$ { deny all; } # Disable PHP in Uploads - Security > Settings > System Tweaks > PHP in Uploads location ~ ^/wp\-content/uploads/.*\.(?:php[1-7]?|pht|phtml?|phps)$ { deny all; } # Disable PHP in Plugins - Security > Settings > System Tweaks > PHP in Plugins location ~ ^/wp\-content/plugins/.*\.(?:php[1-7]?|pht|phtml?|phps)$ { deny all; } # Disable PHP in Themes - Security > Settings > System Tweaks > PHP in Themes location ~ ^/wp\-content/themes/.*\.(?:php[1-7]?|pht|phtml?|phps)$ { deny all; } # Disable XML-RPC - Security > Settings > WordPress Tweaks > XML-RPC location ~ xmlrpc.php { deny all; } # END iThemes Security - Do not modify or remove this line
And I can access it directly through domain.xyz/ngnix.conf – why could everybody read it?
Did I miss some settings at my server to protect this file for public access?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘iThemes Security creates public nginx.conf file’ is closed to new replies.