From 62b172074098518379e91b75be16d1d0cace4320 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 30 Sep 2019 10:59:20 +0300 Subject: [PATCH] Update nodejs.org config * redirect `/(static/)?favicon.png` to `/static/favicons/favicon-32x32.png` * redirect `/(static/)?apple-touch-icon.png` too --- setup/www/resources/config/nodejs.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup/www/resources/config/nodejs.org b/setup/www/resources/config/nodejs.org index d1957b929..9e6d587c8 100644 --- a/setup/www/resources/config/nodejs.org +++ b/setup/www/resources/config/nodejs.org @@ -355,8 +355,9 @@ server { # Asset rewrites rewrite ^/layouts/css/styles\.css$ https://$server_name/static/css/styles.css permanent; - rewrite ^/(?!static/)?favicon\.ico$ https://$server_name/static/images/favicons/favicon.ico permanent; - rewrite ^/apple-touch-icon.*\.png$ https://$server_name/static/images/favicons/apple-touch-icon.png permanent; + rewrite ^/(static/)?favicon\.ico$ https://$server_name/static/images/favicons/favicon.ico permanent; + rewrite ^/(static/)?favicon\.png$ https://$server_name/static/images/favicons/favicon-32x32.png permanent; + rewrite ^/(static/)?apple-touch-icon.*\.png$ https://$server_name/static/images/favicons/apple-touch-icon.png permanent; rewrite ^/trademark-policy.pdf$ https://$server_name/static/documents/trademark-policy.pdf permanent; rewrite ^/logos/ https://$server_name/static/images/logos/ permanent;