I’ve looked at this forum and I’ve looked to Google.
It’s very hard to find stuff Nginx reverse proxies.
I want to serve .webp. I’ve tried any tutorials and nothing works. I don’t is it’s a modual missing from nginx.
I was the proxy to change WordPress images to webp if supported by client. I know how to do it in the pantry and that doesn’t work if they’re not making a call to Apache but being served the proxy.
Has anyone else had any experience with this, possibly point me in the right direction or have a working code snippet? Would appreciate the help. I figured here at least you guys would know how to make it work with Hestia setup.
I’m on Ubuntu 18.04 lts and latest Hestia. My webp files have the same name as a counterpart and are in the same folder just .webp is added so xxx.jpg.webp for xxx.pbg.webp. they’re converted by a Cron script.
I also know this convened on WordPress but that doesn’t work very well either for the same reasons as apache.
I think you missunderstood how hestia is working: There is no “hestia nginx” as frontend proxy, it is a default nginx from their repository without and special mods - so you also can adjust it like you want. The only hestia-nginx service is used for the interface/backend only and is not related to the frontend proxy.
@djav1985, @Raphael If you want to install and use Webp you can try the following:
This is what I install before installing Hestia as it will enable webp for all php versions that get installed when Hestia installs. Should work with Hestia already installed as well
Note: Versions listed of Webp and ImageMagick are from last time installed and updated install details in my server / vps setup checklist.
I also use Ubuntu 18.04 and install Webp this way, does not break on updates.
Used on Opencart 2.3.0.2 and 3.0.3.1, PHP 7.1 and 7.4 (with webp extension to enable use)
Fix apt is to install packages required by ImageMagick