Author Topic: Domain Pointing to wrong folder  (Read 5040 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Domain Pointing to wrong folder
« on: March 11, 2019, 03:41:00 PM »
Hi,
   My domain was working fine on my server before 10 hours. i forgot cloudflare account credentials which i have used to connect my domain. so i created new cloudflare account and changed dns in Godaddy. After this change my domain pointing to /usr/local/apache/htdocs/ not to it's correct folder while all other domains are working fine. I've checked vhosts also rebuilt it. Domain was pointing correctly from 2 months.. Nothing changed on server side just changed cloudflare account.

Thanks in advance.

Offline
***
Re: Domain Pointing to wrong folder
« Reply #1 on: March 13, 2019, 04:25:35 AM »
You can have a DNS resolving problem, or a apache configuration problem.
But as you are using clodflare, may be you have a apache configuration problem.
Start testing if your domain is resolving correctly to your server.

Run inside your server:
Code: [Select]
# host domain.com

If pointed to your server, check apache logs.
If no, fix you DNS problem.

When you assure your domain is resolving to your server, you can check if apache is serving your pages.
You must check your logs:
Code: [Select]
/usr/local/apache/logs/error_log
/usr/local/apache/logs/access_log
/usr/local/apache/domlogs/domain.com.error.log
/usr/local/apache/domlogs/domain.com.log

If they are served, you can fix the problems as pointed in your logs.

Regards,
Netino