Nginx location for not exists php files

Francis Daly francis at
Thu Jun 12 18:50:27 UTC 2014

On Thu, Jun 12, 2014 at 08:51:32AM -0400, Khmelevsky wrote:

Hi there,

> But if url, for example, /help.php or contacts.php, and this files not
> exists, i have output
> File not found.
> How update my nginx config? I need urls, for example:

Untested, but:


  try_files $uri /index.php?route=$uri&$args;

inside the php location, and see if that changes anything.

Francis Daly        francis at

More information about the nginx mailing list