Another website on my domain

Started by Abhinavjain, Jul 11, 2022, 05:08 AM

Previous topic - Next topic

AbhinavjainTopic starter

I found out that when I checked the Google Webmaster panel, incorrect pages were appearing in search results for my website mysite.com. These pages started with my domain name, but were not actually located on my site since there is no /somedirectory/ directory present.
This issue made me wonder if it was a problem with DNS or hosting.
  •  

Sevad

It is confirmed that your site has been hacked, and you should contact your hosting provider to check for any malware or viruses in the system. Additionally, you may also refer to the instructions given on this website to eliminate the hack from your site.

ezhabchik

There are two possible reasons for the error mentioned here. Firstly, it could be because the domain name record is directing to one IP address, while another IP address is specified in the Apache configuration file. In this case, the user should check the VirtualHost section of apache.conf (e.g., /etc/apache2/apache2.conf) and ensure that the domain IP address matches the A record.

Restarting the apache web server can be done using the commands below:

systemctl restart apache2 - Debian OS/Ubuntu
systemctl restart httpd - Centos OS

If you are using the ISPmanager panel, check the IP address of the website under the Sites section - Site Settings button - IP address field, and make sure it matches the delegated domain address.

The second possible reason could be that the domain name was not created on the web server. In this case, the user should go to the ISPmanager control panel and create a domain with the correct IP address.

For Nginx web server users, the error may also occur due to mismatched IP addresses in the configuration file and DNS record for the domain. To fix this, the user should check if the desired IP address is registered in the server section of nginx.conf (e.g., /etc/nginx/nginx.conf) in the listen line. Once done, restarting the Nginx web server can be done using the command given below:

service nginx restart
For those using both Apache+Nginx web servers, it is important to check the configuration files of both servers for any inconsistencies as described above.
  •