TonnyORG's avatar

404: Nginx + Lumen + Symlink inside a WP folder

Hello guys,

I'm building an small api with Lumen and I'm dealing with some Nginx issues (404).

This is the folder structure:

public_html/
    lumen/
        ...
        public/
        ...
    wp/
        wp-content/
        wp-admin/
        ...
        symlink-to-lumen
        ...

The symlink-to-lumen is pointing to lumen/public folder; right now I'm getting Lumen's 404 when I access to url.com/symlink-to-lumen/ so I wanna know if someone could point me in the right direction to make this thing work.

Thank you!

0 likes
4 replies
TonnyORG's avatar

@TheNodi disable_symlinks is not "setted" in the server block so as default is allow I guess it is.

Thank you

TheNodi's avatar
TheNodi
Best Answer
Level 11

@TonnyORG

I might not have understood it, with "Lumen's 404" error , do you mean lumen is loading and it returns 404?

If that's the case, try adding "symlink-to-lumen/" to your routes, it might get confused by the url (Never used laravel/lumen into subfolder, so I cannot be sure).

1 like
TonnyORG's avatar

Awesome!

That worked, thank you @TheNodi. Seems like I've to prepend symlink-to-lumen/ to all the routes in Lumen, thank you so much!

Please or to participate in this conversation.