I made the root path of Lumen works inside a wordpress folder (url.com/), the thing is that it only recognize the root url.com/lumen, but not the other routes like url.com/lumen/action/.
The error is WP 404 error, as you know the main domain runs over WP (so the main server{} block has WP rules). Lumen is configured as public sub-folder (internally works as a symlink).
When I type site.com/lumen/ it works and show up the Lumen content, but if I visit site.com/lumen/sample/ it doesn't and seems like it's handled by WP instead of Lumen because it returns my WP 404 Page.
In the Nginx server block I've this (as you can see I've nothing specific for the Lumen folder):
I guess it's because all url that doesn't exists as a file are redirected to the wordpress index.php.
I'm really bad at nginx configurations (loving forge for that reason), but here's what it should do in order of priority:
If the file exists, serve it
If the url is /lumen/* redirect to lumen's index.php
Else redirect to wordpress index.php
I would try this, but I'm really not sure if it works: