There is a line in /var/www/vhosts/mydomain.com/httpdocs/nginx.conf with location ~* wp-config.php$ {deny all}.no, don't have.
There is a line in /var/www/vhosts/mydomain.com/httpdocs/nginx.conf with location ~* wp-config.php$ {deny all}.no, don't have.
There is however some similar line in /var/www/vhosts/mydomain.com/httpdocs/nginx.conf:With no such limit in the Nginx configuration and all other things checked like ownership of the file, permission set etc., it is impossible that the file cannot be accessed. This needs to be re-checked carefully that *really* everything is correct. There has got to be a permission block somewhere. If it is not in the webserver configuration, it can only be on the file system level.
No, it wasn't place there deliberately. somehow it was there. I am using itheme security. I think the settings inside the nginx.conf file contains settings of the itheme security.That would be a wrong path for the nginx.conf file. I cannot say why that file exists in the document root folder of the domain. Has it been placed there deliberately?
I actually deactivated and deleted the plugin but still the same. so I reinstalled it back. I can't say for sure whether it is that plugin problem. But I heard itheme security has a conflict with all in one migration plugin which I used to migrate my website.Could your security plugin be the cause why other software cannot edit wp-config.php?
The following errors shown in console:Plesk itself runs on a different webserver, so Nginx and Apache settings of the website should not affect the accessibility of the file for the built-in editor. What you could still do is to open your browser "Tools" console, like in Firefox for example "Extras" > "Tools" > "Tools for Web Developers" to find out more, e.g. if some specific error becomes visible when you try to edit the file through editor. Else I still think it is an ownership or permissions issue of the file or the path to that file.
I found out that I can access my wp-config.php file when I log in through my ipaddress:8443 port but not when I log in through plesk url whether port 8443 or not. when using ip address the connection is unsecured although i have let's encrypt ssl installed. i don't understand why.Plesk itself runs on a different webserver, so Nginx and Apache settings of the website should not affect the accessibility of the file for the built-in editor. What you could still do is to open your browser "Tools" console, like in Firefox for example "Extras" > "Tools" > "Tools for Web Developers" to find out more, e.g. if some specific error becomes visible when you try to edit the file through editor. Else I still think it is an ownership or permissions issue of the file or the path to that file.
That is the first recommendation in the "Workaround" section from the article https://support.plesk.com/hc/en-us/articles/12376964923031 mentioned in the first post of this thread.I found out that I can access my wp-config.php file when I log in through my ipaddress:8443 port but not when I log in through plesk url whether port 8443 or not. when using ip address the connection is unsecured although i have let's encrypt ssl installed. i don't understand why.
it is different because it said use domain port 8443. If you use your plesk domain name with port 8443, you still face the same problem. You have to use ip adddress with port 8443 into unsecured connection then you access your wp-config file.That is the first recommendation in the "Workaround" section from the article https://support.plesk.com/hc/en-us/articles/12376964923031 mentioned in the first post of this thread.