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.
Thank for answer. Maybe you have manual how add this rules in nginx manually?
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.
Rule should be placed in the section server {} configuration file nginx. And replace (-720×540) to your image size