Welcome! Log In Create A New Profile

Advanced

Serve as routes instead of files/directories

Posted by merenze 
Serve as routes instead of files/directories
December 11, 2020 02:51PM
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.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 259
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready