OK, you could try another option, again in the avast Settings > Active Protection > Web Shield settings, Main Settings and check the ‘Scan traffic from well-known browser processes only.’

Hopefully that will work as I wouldn’t think that the Apache web server would be considered a well-known browser process.

That’s me for the night, after 2:30am here.
EDIT: forgot to attach image.