Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Protect Uploads

    (@alticreation)

    Hello,

    this issue with nginx is that you have to add yourself the missing rules in the main nginx configuration file.

    The next version of the plugin will include a rule generator for nginx, but you will still have to add it manually.

    Thread Starter kingstakh

    (@kingstakh)

    Thank for answer. Maybe you have manual how add this rules in nginx manually?

    Thread Starter kingstakh

    (@kingstakh)

    I place this code:

    # nginx configuration
    location / {
    if (-e $request_filename){
    rewrite "^/(.*(-720x540)\.jpg|.*(?<!-\dx\d)(?<!-\d\dx\d)(?<!-\dx\d\d)(?<!-\d\dx\d\d)(?<!-\d\d\dx\d\d)(?<!-\d\dx\d\d\d)(?<!-\d\d\dx\d\d\d)(?<!-\d\d\d\dx\d\d\d)(?<!-\d\d\d\dx\d\d)(?<!-\d\d\dx\d\d\d\d)(?<!-\d\d\d\dx\d\d\d\d)(?<!-\d\d\d\dx\d\d\d)(?<!-\d\d\d\dx\d\d)(?<!-\d\d\d\d\dx\d\d\d\d\d)\.jpg){1}((\?|\&)([^\.\?\" /]+))*$ ../plugins/alti-watermark/public/views/alti-watermark-public-bridge.php?imageRequested=$1;
    }
    }

    Works for me

    Hi kingstakh,
    how did you manage this to work? When I add your code to my website nginx conf and then try to restart nginx I get error and cannot restart it? Can you give more info please…. Thanks.

    Thread Starter kingstakh

    (@kingstakh)

    Rule should be placed in the section server {} configuration file nginx. And replace (-720×540) to your image size

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Don't work with ngnix?’ is closed to new replies.