Re: redirect to a .php file with try_files if required .php file not found

2018-03-18 Thread ST
Thank you for the detailed clarification! On Fri, 2018-03-16 at 09:26 +, Francis Daly wrote: > On Thu, Mar 15, 2018 at 01:32:34PM +0200, ST wrote: > > Hi there, > > > maybe I pasted too much of my config, basically the important line is: > > > > try_files $uri /virtual_new.php =404

Re: redirect to a .php file with try_files if required .php file not found

2018-03-16 Thread Francis Daly
On Thu, Mar 15, 2018 at 01:32:34PM +0200, ST wrote: Hi there, > maybe I pasted too much of my config, basically the important line is: > > try_files $uri /virtual_new.php =404; The try_files documentation is at http://nginx.org/r/try_files It is not clear to me what specific response y

redirect to a .php file with try_files if required .php file not found

2018-03-15 Thread ST
PS: maybe I pasted too much of my config, basically the important line is: try_files $uri /virtual_new.php =404; Does it look legitim to you? Is it the proper way to redirect in such a case or should I better use rewrite/redirect? Thank you! ---

redirect to a .php file with try_files if required .php file not found

2018-03-14 Thread ST
Hello, I would like to redirect to /virtual_new.php with try_files if required .php file not found, is it the right way to do so: location ~ \.php$ { if ($args ~ "netcat_files/") { expires 7d; add_header Cache-Control "public"; } fastcgi_split_