From a28aaa1fdd5ea0e473304a83bf0de0f2d6145db3 Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 16 Jun 2010 11:33:17 +0200 Subject: Log error when HTTP request has ambiguous Host header (EJAB-1261) --- src/web/mod_http_fileserver.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/web/mod_http_fileserver.erl b/src/web/mod_http_fileserver.erl index 839964052..4f683ea91 100644 --- a/src/web/mod_http_fileserver.erl +++ b/src/web/mod_http_fileserver.erl @@ -299,6 +299,8 @@ process(LocalPath, Request) -> {Code, Headers, Contents} catch exit:{noproc, _} -> + ?ERROR_MSG("Received an HTTP request with Host ~p, but couldn't find the related " + "ejabberd virtual host", [Request#request.host]), ejabberd_web:error(not_found) end. -- cgit v1.2.3