"Primary script unknown" wp-login.php

Miguel Clara miguelmclara at gmail.com
Thu Jan 9 16:46:59 UTC 2014


> I resolved this problem by making the /wordpress directory the server root.
> However, I now have the problem of /usr/local/www/phpMyAdmin being
> inaccessible, due to the same error.
>

You can, and its probably best to use:

fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;


Also you should have those to in different nginx config files, its far
better to read/modify if needed.
In any case the .php block should work has long has the "root" is set
right in the different locations!



More information about the nginx mailing list