From bcf93810adbdad6d85491d7d657ea1771fbd4915 Mon Sep 17 00:00:00 2001 From: Jeff Bradberry Date: Fri, 14 May 2021 13:51:56 -0400 Subject: [PATCH] Add an nginx location directive for the favicon so that the rewrite rule that adds slashes to the ends of requested urls doesn't get to it. --- tools/docker-compose/nginx.vh.default.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/docker-compose/nginx.vh.default.conf b/tools/docker-compose/nginx.vh.default.conf index 73a4d1cd8d..5a83f2ab03 100644 --- a/tools/docker-compose/nginx.vh.default.conf +++ b/tools/docker-compose/nginx.vh.default.conf @@ -30,6 +30,8 @@ server { sendfile off; } + location /favicon.ico { alias /awx_devel/awx/public/static/favicon.ico; } + location ~ ^/websocket { # Pass request to the upstream alias proxy_pass http://daphne; @@ -90,6 +92,8 @@ server { sendfile off; } + location /favicon.ico { alias /awx_devel/awx/public/static/favicon.ico; } + location ~ ^/websocket { # Pass request to the upstream alias proxy_pass http://daphne;