Welcome! Log In Create A New Profile

Advanced

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!
SubjectAuthorPosted

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: 73
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready