Specific wordpress directory causing 500 internal server error on nginx

Solution:

There is a high probability that the problem is not inside nginx.

Test your WordPress:

  1. Check your .htaccess file, may be he is corrupt, or contains invalid rules for new domain.

The .htaccess file, if it exists, contains a number of rules that tell the server what to do in certain circumstances. It is commonly used for rewriting URLs or preventing access to your site for malicious intent. If there is an .htaccess file there, make a backup and then delete all the contents within, or the whole file. This may remove some important rules, but if the internal server error was caused by a mistake within the file, this will tell you.

  1. Turn on debugging in the wp-config.php file.
define( "WP_DEBUG", true );
  1. Deactivate all plugins and switch themes if you have access to your dashboard.