From f88fe83f04eddc1fcdaf9ca1895f342bc6270c5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Thu, 25 Apr 2024 08:11:59 +0200 Subject: [PATCH] Support "old" static files directory Allow to use the gsad with old GSA versions and the in development one. --- src/gsad_http_handler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gsad_http_handler.c b/src/gsad_http_handler.c index 098d75b23..1d0347a74 100644 --- a/src/gsad_http_handler.c +++ b/src/gsad_http_handler.c @@ -770,6 +770,8 @@ make_url_handlers () url_handler_add_func (url_handlers, "^/config\\.*js$", handle_static_config); url_handler_add_func (url_handlers, "^/assets/.+$", handle_static_file); + url_handler_add_func (url_handlers, "^/static/(img|js|css|media)/.+$", + handle_static_file); url_handler_add_func (url_handlers, "^/manual/.+$", handle_static_file); // Create /gmp handler.