Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Serve as routes instead of files/directories

$
0
0
I am creating an application with Laminas and cannot seem to get Nginx configured correctly; it looks to me as though it is attempting to serve routes as directories rather than serving the single-page (index.php) as it should be.

I've followed the instructions in the Laminas MVC skeleton's README at https://github.com/laminas/laminas-mvc-skeleton#nginx-setup and my actual config looks like this: https://pastebin.com/xTSndm3A

What I want is for it to first try $uri and $uri/, and failing the existence of those to then pass the route to the application to deal with.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>