Welcome! Log In Create A New Profile

Advanced

Re: Nginx location for not exists php files

Francis Daly
June 12, 2014 02:52PM
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?route=$uri&$args;

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

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx location for not exists php files

Khmelevsky June 12, 2014 08:51AM

Re: Nginx location for not exists php files

Francis Daly June 12, 2014 02:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 154
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