The Slim Framework support forum has moved to This Tender forum is no longer maintained or monitored.

Fix Nginx config.

avalak's Avatar


24 Apr, 2012 10:41 PM

According to Nginx wiki: If is Evil.
So, instead of this (Slim. Get started. Nginx):

if (!-f $request_filename) {
  rewrite ^ /index.php last;

we should use something like this:

location / {
  try_files $uri $uri/ /index.php?$request_uri;

or named location.

  1. Support Staff 1 Posted by Josh Lockhart on 24 Apr, 2012 10:43 PM

    Josh Lockhart's Avatar

    Thanks! I'm aware of this. Someone has already sent me a pull request for this change. I'll get it pulled into the next point release.

  2. Josh Lockhart closed this discussion on 24 Apr, 2012 10:43 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac