emozio's avatar

Valet/Nginx: Unable to access public subdirectories without 404 error

So, here's the deal: whenever I try to access files in my public directory (e.g. /js/ajax/check-domain.php), I get an NotFoundHttpException. I suspect Laravel (or some configuration) is trying to parse this url as a route, instead of a path to a file.

Does anyone know how I can resolve this? I have looked all over the web for an answer, but no luck so far. Hopefully somebody is able to answer this question.

Additional info: running Laravel Valet, using .dev "parked" domain for my sites.

Thanks guys.

0 likes
1 reply
cre-mer's avatar

I have the same problem. The node_modules folder seems not to be accessible. Although I tried to change permissions. And it seems to work in other projects. There is this one project where I'm facing the same issue :/

Please or to participate in this conversation.