WebP support in PHP packages provided by Plesk



1 comment

  • Avatar
    yossef mamdouh

    The error message appears before 10web.io

    WebP Format Not Enabled: Your server is preventing us from configuring WebP conversion. Please follow these instructions to enable it manually.

    Serve WebP Via Server

    To configure for server side serving, please copy the code bellow to nginx.conf and then reload Nginx.

    map $http_accept $webp_suffix {
        default "";
        "~*webp" ".webp";
    location ~* ^.+\.(png|jpe?g)$ {
        add_header Vary Accept;
        try_files $uri$webp_suffix $uri =404;
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request