title: How to change favicon for Dash app (served on Nginx and Gunicorn)?
body: <p>I have tried everything. From putting favicon.ico in assets folder, static folder, in same directory as main.py file. Also I have tried adjusting nginx configuration in many different ways like:</p>
  
  <pre><code>location /favicon.ico{
          alias /root/DocToHtml/static/favicon.ico;
  }
  
  location /favicon.ico{
          alias /root/DocToHtml/assets/favicon.ico;
  }
  </code></pre>
  
  <p>and so on..</p>
  
  <p>It seems I can't figure out how to add custom favicon to my dash app.</p>
  
  <p>EDIT: This is how my current <code>/etc/nginx/sites-enabled/dth</code> looks like:</p>
  
  <pre><code>server {
          listen 80;
          server_name &lt;hidden_server_ip&gt;;
  
          location /static {
                  alias /root/DocToHtml/static;
          }
  
          location = /favicon.ico { root /root/DocToHtml/assets; }
  
          location / {
                  proxy_pass http://localhost:8000;
                  include /etc/nginx/proxy_params;
                  proxy_redirect off;
          }
  }
  </code></pre>
  
  <p>and favicon.ico path is: <code>~/DocToHtml/assets/favicon.ico</code></p>