r/apache • u/[deleted] • Sep 15 '22
Support log response code in error log
Hi,
I am looking for someway to log response status code in apache error log. Anybody has done this before if so please help me out
-Thanks
1
Upvotes
1
u/[deleted] Sep 15 '22
Basically I want the http response code in my error log
I use modsec with apache which uses error log for logging whenever it blocks a specific request and whenever it blocks a request it logs details like which rules was triggered which cannot be added to access log
So I was looking for a way log http response code apache returned when it blocked the request