Title: Plugin not Working on VESTACP
Last modified: June 29, 2017

---

# Plugin not Working on VESTACP

 *  Resolved [vlaoff](https://wordpress.org/support/users/vlaoff/)
 * (@vlaoff)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-531/)
 * Hello,
 * I’m unable to make this plugin work on my site. Looks like the rewrite is not
   working.
 * The Debug in the admin says everything is ok
 * But the images are shown as usual
    [https://apriori.photo/wp-content/uploads/2017/06/24256.jpg?debug=true](https://apriori.photo/wp-content/uploads/2017/06/24256.jpg?debug=true)
 * Web Server
    Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/5.6.30
   Document Root /home/apriori/web/apriori.photo/public_html PHP 5.6.30
 * I’im using VESTACP
 * Update:
 * Fixed it by adding this to the snginx.conf of my domain
 * rewrite \.(?:jpe?g|gif|png)$ /wp-content/plugins/adaptive-images/adaptive-images-
   script.php;
 * It’s in /home/{USER}/conf/web
 * Your location / should look like this
 *     ```
        location / {
               proxy_pass      https://188.120.244.161:8443;
               location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|htm|html|ttf|otf|webp|woff|txt|csv|rtf|doc|docx|xls|xlsx|ppt|pptx|odf|odp|ods|odt|pdf|psd|ai|eot|eps|ps|zip|tar|tgz|gz|rar|bz2|7z|aac|m4a|mp3|mp4|ogg|wav|wma|3gp|avi|flv|m4v|mkv|mov|mpeg|mpg|wmv|exe|iso|dmg|swf)$ {
                   root           /home/apriori/web/apriori.photo/public_html;
                   access_log     /var/log/httpd/domains/apriori.photo.log combined;
                   access_log     /var/log/httpd/domains/apriori.photo.bytes bytes;
                   expires        max;
                   try_files      $uri @fallback;
                   rewrite \.(?:jpe?g|gif|png)$ /wp-content/plugins/adaptive-images/adaptive-images-script.php;
               }
   
           }
       ```
   
    -  This topic was modified 8 years, 11 months ago by [vlaoff](https://wordpress.org/support/users/vlaoff/).
    -  This topic was modified 8 years, 11 months ago by [vlaoff](https://wordpress.org/support/users/vlaoff/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Takis Bouyouris](https://wordpress.org/support/users/nevma/)
 * (@nevma)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-531/#post-9274250)
 * Hello, my friend,
 * So, yes, if you are using NginX, then it is technically impossible for the plugin
   to update the server’s configuration file automatically, because NginX does not
   allow that. Apache is a bit more flexible in that respect with htaccess files.
 * I am glad you were able to find the solution and thank you for sharing it with
   us.
 * Cheers,
    Takis

Viewing 1 replies (of 1 total)

The topic ‘Plugin not Working on VESTACP’ is closed to new replies.

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

 * 1 reply
 * 2 participants
 * Last reply from: [Takis Bouyouris](https://wordpress.org/support/users/nevma/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-531/#post-9274250)
 * Status: resolved