Forum: NGINX If statements, string manipulation and file detection

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
oops_im_a_sysadmin (Guest)
on 2013-07-18 20:50
(Received via mailing list)
Hi, I'd like to use some if statements in a config. I know if in nginx
evil, but I think it's what I want. Here is the pseudo-nginx-conf-code
what I need: — can someone please help me
the syntax right? In english, the idea is: if the requested filename
with either "F.jpg" or "M.jpg", and another file with almost the same
but the _other_ ending instead does not exist, break/fail.

Thanks for any help!

Posted at Nginx Forum:,241010,241010#msg-241010
This topic is locked and can not be replied to.