Support » Plugin: WebP Express » Ubuntu 18 + Plesk 17.8.11 + Nginx NOT WORKING

  • Hey,

    ive testet to use your plugin under Ubuntu 18 + Plesk 17.8.11 + Nginx but i doesnt become it to work!

    I use you faq based tutorial but nothing helped. 502 Error, 503 Error…

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author rosell.dk

    (@roselldk)

    In Plesk it seems you cannot control the complete nginx configuration file.
    Also, I’m having trouble with the location directives. Perhaps its because others have been set.

    I have got the following working in Plesk:

    if ($http_accept ~* "webp"){
    set $whattodo A;
    }
    if (-f $request_filename.webp) {
    set $whattodo "${whattodo}B";
    }
    if ($whattodo = AB) {
    rewrite ^(.*) $1.webp break;
    }
    if ($whattodo = A) {
    rewrite ^/wp-content/.*\.(jpe?g|png)$ /wp-content/plugins/webp-express/wod/webp-on-demand.php?xsource=x$request_filename&wp-content=wp-content break;
    }
    • This reply was modified 2 years, 8 months ago by rosell.dk.
    Thread Starter JensGoro

    (@jensgoro)

    Thanks but im Not an Linux Profi.
    Can you please explain a little Detail where i must implement your new Code?

    Thread Starter JensGoro

    (@jensgoro)

    Is there any way to use your Plugin without modify files?

    Thread Starter JensGoro

    (@jensgoro)

    Hey @roselldk,

    please can you say me wich file i must edit?
    I doesnt understand it in your faq (usually found in /etc/nginx/sites-available).

    If you mean the files like “domain.conf” in vhosts? Beause only there i found server with { entry.

    But there is an entry “#ATTENTION! DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY, SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.”

    Or you can send me your config file for example?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Ubuntu 18 + Plesk 17.8.11 + Nginx NOT WORKING’ is closed to new replies.