Home Forums WordPress Plugins Hide My WP Nginx location rules

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19182
    aelsharawi
    Pro
    Post count: 28

    Hi

    I have this rule:

    include /home/nginx/domains/domain.com/public/hidewp.conf;
    
    location /wp-content/uploads/2017 {
      #pagespeed off;
      autoindex off;
      #add_header X-Robots-Tag "noindex, nofollow";
      location ~* ^/wp-content/uploads/2017/.+\.(png|jpe?g)$ {
       expires 30d;
       add_header Vary "Accept-Encoding";
       add_header Cache-Control "public, no-transform";
       try_files $uri$webp_extension $uri =404;
      }
    }
    

    Is the include rule is detected by the hmwp ?
    or do I change the rule ro the renamed files?
    such as:

    location /file/2017 {
      #pagespeed off;
      autoindex off;
      #add_header X-Robots-Tag "noindex, nofollow";
      location ~* ^/wp-content/uploads/2017/.+\.(png|jpe?g)$ {
       expires 30d;
       add_header Vary "Accept-Encoding";
       add_header Cache-Control "public, no-transform";
       try_files $uri$webp_extension $uri =404;
      }
    }
    
    #19186
    Suman M.
    Post count: 12478

    Hi, I’m not very clear with your query. Are you trying to configure HMWP plugin in Nginx webserver? If so please go through this video tutorial – http://support.wpwave.com/videos/setup-hmwp-on-nginx-webserver

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

You must be logged in to reply to this topic.