title: Problem with brotli configuration in nginx
body: <p>I am following this guide <a href="https://www.vultr.com/docs/add-brotli-support-to-nginx-on-ubuntu-18-04" rel="noreferrer">https://www.vultr.com/docs/add-brotli-support-to-nginx-on-ubuntu-18-04</a></p>
  
  <p>I have followed every step but I am stuck at <strong>Step 4 – Configure Nginx</strong></p>
  
  <p>When I add to <code>nginx.conf</code></p>
  
  <pre><code>load_module modules/ngx_http_brotli_filter_module.so;
  load_module modules/ngx_http_brotli_static_module.so;
  </code></pre>
  
  <p>I get this error after running <code>sudo nginx -t</code>:</p>
  
  <pre><code>nginx: [emerg] dlopen() "/usr/share/nginx/modules/ngx_http_brotli_filter_module.so" failed (/usr/share/nginx/modules/ngx_http_brotli_filter_module.so: cannot open shared object file: No such file or directory) in /etc/nginx/nginx.conf:6
  nginx: configuration file /etc/nginx/nginx.conf test failed
  </code></pre>
  
  <p>What might cause that?
  Thank you!</p>
  
  <p>Hosting provider: DigitalOcean
  Server running: Ubuntu 20.04 LEMP
  Nginx version: 1.17.10</p>