Welcome! Log In Create A New Profile


If statements, string manipulation and file detection

July 18, 2013 02:49PM
Hi, I'd like to use some if statements in a config. I know if in nginx is evil, but I think it's what I want. Here is the pseudo-nginx-conf-code for what I need: http://pastebin.com/BxrtZ695 — can someone please help me get the syntax right? In english, the idea is: if the requested filename ends with either "F.jpg" or "M.jpg", and another file with almost the same name but the _other_ ending instead does not exist, break/fail.

Thanks for any help!
Subject Author Posted

If statements, string manipulation and file detection

oops_im_a_sysadmin July 18, 2013 02:49PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

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