• Resolved vlaoff

    (@vlaoff)


    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

    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 7 years, 9 months ago by vlaoff.
    • This topic was modified 7 years, 9 months ago by vlaoff.
Viewing 1 replies (of 1 total)
  • Plugin Author Takis Bouyouris

    (@nevma)

    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.