View Full Version : Interesting WWW Issue..
jasonX 06-06-2002, 02:11 PM Anyone know why this may be happening.
http://okcoin.com - Actual Page
http://www.okcoin.com - Apache "It Worked!" page
The dns zone has WWW entry..
What could be going on? (Cpanel server)
Thanks.
Rochen 06-06-2002, 02:15 PM If you have access to WHM check the DNS info is entered correctly.
For example if you are a reseller or someone set the server up for you under another domain you will probably have to change entries in the domain's DNS zone file.
e.g. if the domain on the zone file is NS1.RESELLER-DOMAIN.COM replace all entries of "RESELLER-DOMAIN.COM" with your domain name.
jasonX 06-06-2002, 02:51 PM Well, I am not a reseller. I own the server. But the zone file looks just like the other zone files, which work fine. Any other ideas?
The Prohacker 06-06-2002, 03:37 PM Can you paste us the apache vhost info for that domain?
DuraServer 06-06-2002, 04:02 PM It looks like it is a problem in the DNS zone file for that domain.
Is the www alias pointing to the correct place?
Maybe not... or maybe there is no www alias... or maybe the punctuation is incorrect.
Do an NS Lookup on okcoin.com and also on www.okcoin.com
See if the www one goes to a different place.
One of them should bring back an A record and usually the other will bring back a CName. They can both bring bac A records if both A records point to the same place.
DuraServer 06-06-2002, 04:04 PM If you're satisified with teh DNS being OK, then check the Virtual host container in the httpd.conf file and see if the www is pointing to a different directory path on the server.
diederik 06-06-2002, 04:08 PM If you still have problems, contact me @ ICQ 25949802, and I'll take a look for you.
jasonX 06-06-2002, 04:12 PM Well, heres the vhost part from httpd.conf
-----------------------------
#NameVirtualHost 204.246.138.2:80
<VirtualHost 204.246.138.2>
ServerAlias www.okcoin.com okcoin.com
ServerAdmin webmaster@okcoin.com
DocumentRoot /home/okcoinc/public_html
BytesLog domlogs/okcoin.com-bytes_log
User okcoinc
Group okcoinc
ServerName www.okcoin.com
ServerAlias libertycoin.com *.libertycoin.com
ServerAlias www.okcoin.com *.www.okcoin.com
ServerAlias libertycoin.com *.libertycoin.com
CustomLog domlogs/okcoin.com combined
ScriptAlias /cgi-bin/ /home/okcoinc/public_html/cgi-bin/
</VirtualHost>
--------------------------------
I am pretty sure the dns info is correct, and yes, I have a WWW CNAME entry in the zone file.
billyjoe 06-06-2002, 04:22 PM Doing an nslookup shows the following
Name: www.okcoin.com
Address: 66.96.197.2
Name: okcoin.com
Address: 204.246.138.2
Sounds like a DNS issue to me.
The Prohacker 06-06-2002, 04:29 PM Yeah looks to be dns..
Wanna paste up your record for that domain?
jasonX 06-06-2002, 04:37 PM http://204.246.138.98/1.gif
DuraServer 06-06-2002, 06:23 PM Hi,
I recommend 2 things.
I would try altering my ServerAlias string from:
ServerAlias www.okcoin.com *.www.okcoin.com
to:
ServerAlias www.okcoin.com okcoin.com
It would work like this: fakename realname
After any changes, must restart apache.
Take a look at your dns Zone file for that domain.
Try to make the entries look something like my example:
duraserver.com. 14400 IN A 65.200.170.173
www.duraserver.com. 14400 IN CNAME duraserver.com.
You could also make an A Record for your www alias instead, if you want. An
A record would let you point an alias (subdomain) anywhere.. another
server, another web site... any IP in the world.
Then you must increment the Zone file serial number, and restart bind. (or
reload bind... your choice).
Let us know..
Drake P..
DuraServer.Net
x86brandon 06-06-2002, 10:40 PM As of now, I see 2 issues.
1) DNS... www.okcoin.com is resolving, and okcoin.com is not.
2) Config... The config has alot of extra aliasing... I am not familiar with WHM and what it does to the config file but a better set of configs would be...
<VirtualHost 204.246.138.2>
ServerName okcoin.com
ServerAlias *.okcoin.com
ServerAlias *.libertycoin.com
ServerAdmin webmaster@okcoin.com
DocumentRoot /home/okcoinc/public_html
CustomLog domlogs/okcoin.com combined
BytesLog domlogs/okcoin.com-bytes_log
ScriptAlias /cgi-bin/ /home/okcoinc/public_html/cgi-bin/
User okcoinc
Group okcoinc
</VirtualHost>
Let me know how that goes..
jasonX 06-08-2002, 05:01 PM Well, I don't know. I tried basically 100% of what everyone suggested. Nothing worked. So I finally just terminated the account, and readded it (Already did 100 times) but this time I went through SSH and deleted all entrys of the username/domain I could find, then re added it, and it worked.. totally totally bizzarre... ohwell. I really appreciate everyones help though. Thanks for actually trying to help.
Weird.. :rolleyes:
|