I have a Magento 2 installed in /var/www/html/ folder using mydomain.com and I added a Wordpress in /var/www/html/pub/wp/ folder using mydomain.com/wp/ When I tried to access mydomain.com/wp/readme.html it's working fine but all php files are not accessible so I can't connect to admin mydomain.com/wp/wp-login.php and see my Wordpress.
I added this to my nginx configuration but it's not working :
location /wp/ {
index index.html index.php;
try_files $uri $uri/ /wp/index.php?q=$uri&args;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index /wp/index.php;
include fastcgi.conf;
}
}