Plugin not Working on VESTACP
-
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=trueWeb 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.30I’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; } }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Plugin not Working on VESTACP’ is closed to new replies.