Permalink
Browse files

Log error when HTTP request has ambiguous Host header (EJAB-1261)

  • Loading branch information...
1 parent afa0f4d commit a28aaa1fdd5ea0e473304a83bf0de0f2d6145db3 @badlop badlop committed Jun 16, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 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.

0 comments on commit a28aaa1

Please sign in to comment.