404 on try_files

2017-09-21 Thread Nathan Zabaldo
I'm going nuts on this. Any help would be much appreciated. The $request_uri /h_32/w_36/test.jpg needs to be routed to /index.php/img/i/h_32/w_36/test.jpg index.php will route the request to the "img" controller and "i" method, then process the image and return it. However, my MVC works off of

Migrate Apache directives to Nginx

2017-09-20 Thread Nathan Zabaldo
Question on SF: https://serverfault.com/questions/874730/convert-apache-mod-proxy-p-to-nginx-equivalent My PHP MVC platform CodeIgniter performs routing based on the REQUEST_URI. In Apache, you cannot change the REQUEST_URI environment variable. So, in Apache, I made use of the [P]proxy flag. Sen