aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2010-06-16 11:33:17 +0200
committerBadlop <badlop@process-one.net>2010-06-16 11:33:17 +0200
commita28aaa1fdd5ea0e473304a83bf0de0f2d6145db3 (patch)
tree48141d5bf84e9f91e83c279576412f2ab8fc0d41
parentFix for Erlang R12, that doesn't support: true andalso ok (diff)
Log error when HTTP request has ambiguous Host header (EJAB-1261)
-rw-r--r--src/web/mod_http_fileserver.erl2
1 files changed, 2 insertions, 0 deletions
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.