Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Forum: Plugins
    In reply to: [Imaguard] nginx

    Hello there!
    I don’t know if I’m doing it correctly. I’m using NGINX too. So I edited my vhost config file located in ‘/etc/nginx/sites-enabled/wordpress’ this way:

    location / {
            try_files $uri $uri/ /index.php?$args;
            # Imaguard:
            if ($http_referer !~* "^https://(.+.)?my-domain.com"){
              set $rule_0 1$rule_0;
            }
            if ($rule_0 = "1"){
              rewrite ^/(.*).(jpg|png|jpeg|gif)$ /show-image/?img=/$1$
            }
        }

    but I’m not seeing any watermarking in the Google Images search results. When I point my browser to https://www.my-domain.com/wp-content/uploads/2013/05/images.jpg?test’ I get an 404 error, what is supposed, right? Also, when I click on a result in the Google Images search, it redirects me to the post where the image appears. So I think that everything is working properly but the watermarking. Any clue of what I’m missing?

    Thread Starter beakman

    (@beakman)

    Thanks coopersita and Curtiss! But, if I use this code $args = array( 'post_type' => 'pictures', 'posts_per_page' => 12, 'tag' => 'your-tag-slug' ); , It just will be shown posts of an specific tag, don’t be?

Viewing 2 replies - 1 through 2 (of 2 total)