-e vs -f and -d
drook
nginx-forum at forum.nginx.org
Mon Dec 11 14:51:51 UTC 2017
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.
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,277731,277731#msg-277731
More information about the nginx
mailing list