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!

If statements, string manipulation and file detection

oops_im_a_sysadminJuly 18, 2013 02:49PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 84
Record Number of Users: 5 on August 04, 2015
Record Number of Guests: 244 on October 02, 2015
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready