Re: Nginx location for not exists php files

2014-06-12 Thread Francis Daly
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: put try_files $uri /index.php?rou

Nginx location for not exists php files

2014-06-12 Thread Khmelevsky
I have config(minimal): server { listen test.local:80; server_name test.local; server_name_in_redirect off; location / { root /data/www/test/public; try_files $uri $uri/ /index.php?route=$uri&$args; index index.html index.php; } location ~ \.php$ { root /data/www