Tmeister / wp-api-jwt-auth

A simple plugin to add JSON Web Token (JWT) Authentication to WP REST API
GNU General Public License v2.0
556 stars 160 forks source link

It will NOT work at all with this common nginx conf #273

Open gumpjt opened 1 year ago

gumpjt commented 1 year ago

My site have permalink setting like: www.test.com/post-name/ and nginx very basic conf:

location / {
    try_files $uri $uri/ /index.php$is_args$args;
}

when I install this plugin, it does not work. the /wp-json/wp/v2/posts/XXX is still accessable.

I tried to google it for a long time but faild...

Any idea on this?

env: VPS with ubuntu 20 latest WP php 8.1 clean site, no other plugin...

Thanks.