I am trying to configure the WordPress and NodeJS website together and I am using an apache2 server and ubuntu(20.04) virtual machine. I configured both applications successfully on my machine but after some time, I start getting unusual site down notifications from my monitoring system. When I checked my Ubuntu machine using htop then I found that there are so many tasks going on and when I checked things in more detail then I found that the apache server calling itself again and again which creates load on apache server and ultimately leads to site down.
I also checked the number of requests which my server is getting then I found that my server is also getting so many unusual requests from different IPs. So, I think it may be a DDos attack. So, I terminated my machine and create a new machine for this but got the same issue on my new machine.
I have no idea why this happening to my machine. If anyone has any idea then please reply.
HTOP output: htop output
Apache status output: apache status output
IP requests output: IP address requests