I moved my site to a new server before 15 days.... Sometimes... The site not working when i adding www. in front of the domain... www. domain.com - not working domain.com - working if i use proxy - www. domain.com working But after some hours both working without any problem. It happends daily from some hours... What are the possible reasons for this problem? DNS Problem? or Server Problem? or Problem with my ISP?
yes, DNS problem. Check your DNS record for your domain. Make sure there is a "www" setup to point to your account as well.
Thanks for your reply.... I am a noob in server administartion Server uses direct admin panel There i checked dns settings Records are like this *.domain.com. A xx.xx.xx.xxx domain.com. A xx.xx.xx.xxx ftp A xx.xx.xx.xxx localhost A 127.0.0.1 mail A xx.xx.xx.xxx pop A xx.xx.xx.xxx www A xx.xx.xx.xxx domain.com. NS ns1.xx.xx.xxx.server.com. domain.com. NS ns2.xx.xx.xxx.server.com. mail MX 10 domain.com. TXT "v=spf1 a mx ip4:xx.xx.xx.xxx ?all" If thats a dns problem ... how the sites works good in some countries with www. domain.com
Are you running 2 DNS servers? I have seen the record on one of the two get screwed up - sometimes the control panel doesn't fix it. That can cause intermittent issues like this.
It looks your DNS is configured to accept hits on wildcards. So doesnt matter if you a request is made to www. or www2. or anythinghere. domain. com it should open. Of course you will need to have the right configuration in apache vhost conf.. Therefore your apache configuration for the domain should contain these lines: ServerName www. domain.com ServerAlias *.domain.com then it should work. Hope it helps you P.S. i added space in the Servername directive because the forums wont let me write it correctly assuming i am advertising.