• Resolved lbgother

    (@lbgother)


    Hello,

    This is the error I am getting on the plugin homepage:

    Server configuration error
    Requests to images are processed by your server bypassing Apache. When loading images, rules from the .htaccess file are not executed. Check the redirects for .png file (for which the redirection does not work) and for .png2 file (for which the redirection works correctly). Please contact your server administrator.

    Server config: https://imgur.com/a/n1UDPPI
    WebP was not included in the list on imagick

    I use Cloudways (Managed Cloud Hosting Platform) to host my WordPress, and their stack is a hybrid of Apache-NGINX.

    Do I use the NGINX configurations from the other threads on this support forum? Or do I edit the .htaccess file?

    I saw your FAQ, “How to change .htaccess rules?”, but it lists filters instead of the .htaccess configs. Do I add those filters into functions.php? Should I delete the filters after completing setup?

    Thank you. I’m excited to take advantage of your plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @lbgother,

    Thank you for your message.

    Please contact your server administrator. Adding any rules to the .htaccess file will do nothing because they are ignored by your server.

    Can I ask you to let me know if you managed to solve the problem?

    Thread Starter lbgother

    (@lbgother)

    OK, it is fixed. If you use Cloudways (Managed Cloud Hosting Platform) to host your WordPress, you need to contact support to change your NGINX config to allow this plugin to do its work.

    Cloudways uses NGINX to serve static content. This is the list of content from the NGINX config:
    location ~* ^.+\.(html|htm|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|bz2|pdf|odt|txt|tar|bmp|rtf|js|swf|avi|mp4|mp3|ogg|flv|svg)

    Therefore, Cloudways support had to remove the image extensions that this plugin will convert to WebP. Now, the images are being rewritten with Apache and served as WebP, while all the other static content is still being served by NGINX.

    Thanks

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @lbgother Thank you very much for the information. Can you send me the whole fragment about serving static files? You only sent a condition, and I’d love to see the whole thing.

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

The topic ‘Server configuration error (Cloudways hosting)’ is closed to new replies.