you need to rebuild custom nginx from source including https://github.com/google/ngx_brotli or use precompiled binarys There are tutorials / precompiled 3rdparty repos out there https://launchpad.net/~hda-me/+archive/ubuntu/nginx-stable https://nixcp.com/brotli-compression-nginx/ just to name a few - which I haven't tested. https://trac.nginx.org/nginx/ticket/798
Honestly, I could - however this is not the kind of support I want to put my time into, basically copying 1:1 what's written on the linked sites. Do you need a general idea about what the two differecniates?
I am getting this issue; root@xxx:/tmp/xdebug-2.4.0# sudo apt-get install brotli nginx nginx-module-brotli Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: nginx-module-brotli : Depends: nginx (= 1.13.8-2-ppa7~xenial) E: Unable to correct problems, you have held broken packages.
please try Code: sudo apt-get install -f sudo apt-get update then try again to install brotli. Same issue? What happens if you remove nginx first ( without purge option! ) However I'd recommend compiling from source, if there's no more recent repo, since the upstream seems to be missing some updates https://nixcp.com/brotli-compression-nginx/
even after Code: sudo apt-get remove nginx sudo apt-get install brotli nginx nginx-module-brotli ? beware your webserver might go offline after this and since I don't speak ubuntu much, make a backup of your configuration files / permissions
If I am not mistaken latest nginx version 1.14 for ubuntu should have brotli by default and you only have to enable it. You may need to backup your current nginx folder and purge nginx before add nginx ppa then update and upgrade your system. Your ubuntu 16.04.1 may be updated to 16.04.4 too if you want.
I have not seen official 1.14 for 16.04, without ppa 1.10 and ppa has 1.13. If 16.04 is needed. If there is an issue with the ppa and you can't upgrade, you need to compile nginx yourself as described in linked page above.
Sorry. I was partly mistaken. Nginx PPA is now 1.14 if you are using ppa:nginx/stable but it is the one which is without brotli as you can see here: https://launchpad.net/~nginx/+archive/ubuntu/stable The Nginx PPA with brotli is still 1.13.8 as mentioned by @ztk.me in his first reply. I have tested this to be working fine.
If it works for @ahrasis then @Efex may has some other ppa in sources.list for different nginx, elsewise it should have worked after removing/installing nginx. Else it wouldn't have recognized " nginx-module-brotli : Depends: nginx (= 1.13.8-2-ppa7~xenial)" Check your sources.list
I was able to install with this article; https://medium.com/@wintermeyer/nginx-with-brotli-on-debian-stretch-2917b1147aec Thanks!
As I said, after updating the ppa that you added, and did a backup of nginx folder, try purging nginx (all of them) via: apt purge nginx* Your system will automatically install apache2 in its place of which you will have to remove before installing nginx and brotli. Run: apt purge -y apache2* && apt install -y nginx brotli nginx-module-brotli mailman I added mailman as mailman will be removed when you purge apache2. You may remove it if you don't use mailman. You may restore your nginx folder thereafter.
I did not recommend purging since I don't know if it would conflict with ispconfig, if it's already configured
It will affect ISP config and all other site whether or not you remove or purge it. That's why you will have to backup nginx folder before doing it and restore it thereafter. Anyway, I didn't try the remove command though I think it could work fine as well.