Centos Web Panel server test page attracting hackers

Started by NetMonkey, July 30, 2020, 09:09:24 PM

Previous topic - Next topic

NetMonkey

I need someone to tell me from what folder this index.html file is in for the Centos Web Panel server test page. I removed one from my server's domain name's public_html folder already. Now this one is somewhere else for my mail.mailserver.com.

What folder is it in? This index file seems to be attracting hackers and I need to change it. Please help.  :(

Com-QuadTech


NetMonkey

You are correct that there is an index.html file in that location, but I deleted it and the test page still shows. Even after clearing my cache and changing browsers. There must be another index.html file in a different location.

cinique

#3
You don't say which webserver configuration you're using.
Apache only:
With just a little bit (2 minutes) of looking around - in my case by command line but also available in the GUI.
ls /usr/local/apache/conf.d
less /usr/local/apache/conf.d/hostname.conf

Bingo!
Quote
ServerName server.domain.name
DocumentRoot /usr/local/apache/htdocs/
Just deleting the index file is not a solution; use a combination of CSF blocklists/country denials and mod security

NetMonkey

Thanks cynique. That was the correct file location. I understand your comments. I do need to setup country blocking and mod security. I'm using nginx-varnish-apache.