Title: Nginx
Last modified: December 8, 2016

---

# Nginx

 *  Resolved [Anthony](https://wordpress.org/support/users/jcerberus/)
 * (@jcerberus)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/nginx-13/)
 * Does not work on my server with nginx and php7 by EasyEngine [https://goo.gl/fgivwK](https://goo.gl/fgivwK)

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

 *  Plugin Author [alpipego](https://wordpress.org/support/users/alpipego/)
 * (@alpipego)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/nginx-13/#post-8531407)
 * Hi Cerberus,
    could you be a bit more elaborate on “Does not work” please? Moreover
   could you please share your nginx rules concerning png jpeg and gif?
 *  Thread Starter [Anthony](https://wordpress.org/support/users/jcerberus/)
 * (@jcerberus)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/nginx-13/#post-8531486)
 * This plugin does not create thumbnails … ever! Only works on another server with
   apache.
 *  Plugin Author [alpipego](https://wordpress.org/support/users/alpipego/)
 * (@alpipego)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/nginx-13/#post-8531494)
 * Yes, therefore could you please share your config? nginx and php7 as such are
   not a problem.
 *  Thread Starter [Anthony](https://wordpress.org/support/users/jcerberus/)
 * (@jcerberus)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/nginx-13/#post-8531636)
 * I sent an email with the credentials of access to the site and server
 *  Plugin Author [alpipego](https://wordpress.org/support/users/alpipego/)
 * (@alpipego)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/nginx-13/#post-8531799)
 * The culprit with nginx is usually a location block like:
 *     ```
       # Cache static files
       location ~* \.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|jpg|jpeg|png|gif|js|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|swf)$ {
         add_header "Access-Control-Allow-Origin" "*";
         access_log off;
         log_not_found off;
         expires max;
       }
       ```
   
 * due to this missing assets are not passed back to php/WordPress
 * if you add a rule above this one that reads
 *     ```
       location ~* (jpe?g|png|gif) {
           try_files $uri $uri/ /index.php?q=$uri&$args;
           expires max;
           log_not_found off;
           access_log off;
       }
       ```
   
 * everything will work as expected. I’ll probably add this to the FAQ section, 
   thanks for pointing it out Anthony.
    -  This reply was modified 9 years, 7 months ago by [alpipego](https://wordpress.org/support/users/alpipego/).
    -  This reply was modified 9 years, 7 months ago by [alpipego](https://wordpress.org/support/users/alpipego/).
 *  Thread Starter [Anthony](https://wordpress.org/support/users/jcerberus/)
 * (@jcerberus)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/nginx-13/#post-8531826)
 * Thank you, buddy!!!

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

The topic ‘Nginx’ is closed to new replies.

 * ![](https://ps.w.org/resizefly/assets/icon-256x256.png?rev=2121683)
 * [ResizeFly](https://wordpress.org/plugins/resizefly/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/resizefly/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/resizefly/)
 * [Active Topics](https://wordpress.org/support/plugin/resizefly/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/resizefly/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/resizefly/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Anthony](https://wordpress.org/support/users/jcerberus/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/nginx-13/#post-8531826)
 * Status: resolved