25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Log request in access.log even when Host doesn't match

This commit is contained in:
Evgeniy Khramtsov 2017-10-05 11:16:05 +03:00
parent 43e729293a
commit 94de13981b

View File

@ -313,7 +313,9 @@ process(LocalPath, #request{host = Host, auth = Auth, headers = RHeaders} = Requ
?DEBUG("Received an HTTP request with Host: ~s, " ?DEBUG("Received an HTTP request with Host: ~s, "
"but couldn't find the related " "but couldn't find the related "
"ejabberd virtual host", [Host]), "ejabberd virtual host", [Host]),
?HTTP_ERR_FILE_NOT_FOUND {FileSize1, Code1, Headers1, Contents1} = ?HTTP_ERR_FILE_NOT_FOUND,
add_to_log(FileSize1, Code1, Request),
{Code1, Headers1, Contents1}
end. end.
serve(LocalPath, Auth, DocRoot, DirectoryIndices, CustomHeaders, DefaultContentType, serve(LocalPath, Auth, DocRoot, DirectoryIndices, CustomHeaders, DefaultContentType,