Welcome! Log In Create A New Profile

Advanced

-e vs -f and -d

December 11, 2017 09:51AM
Hi,

Considering that I don't have symbolic links why do these configs work differently ?

===config one===
if (!-f $request_filename) {
rewrite ^/(.*)$ /init.php;
}
if (!-d $request_filename) {
rewrite ^/(.*)$ /init.php;
}
===config one===

This one above works, rewrite happens.

Being changed to this it stops working, all other lines left intact:
===config two===
if (!-e $request_filename) {
rewrite ^/(.*)$ /init.php;
}
===config two===

This is inside the location / {}.

Thanks.
Subject Author Posted

-e vs -f and -d

drook December 11, 2017 09:51AM

Re: -e vs -f and -d

Maxim Dounin December 11, 2017 11:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 58
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready