[SOLVED]httpd virtualserver doesn't show proper page
Hi,
Well, here we go:
My system: CentOS Linux 5.4
As my VPS provider filters port 53 I use freedns.afraid.org dns's service.
For testing purposes I'm using co.cc free domain names. (I like the word "free")
And here are the configurations:
On co.cc:
Code:
Domain : gassgassnet.Co.CC
Service Type : Name server (DNS)
Name server : ns1.afraid.org
ns2.afraid.org
ns3.afraid.org
ns4.afraid.org
Code:
Domain : oremosjuntos.Co.CC
Service Type : Name server (DNS)
Name server : ns1.afraid.org
ns2.afraid.org
ns3.afraid.org
ns4.afraid.org
On freedns.afraid.org:
Code:
gassgassnet.co.cc:
gassgassnet.co.cc (G) A 190.120.229.160
www,gassgassnet.co.cc (G) CNAME gassgassnet.co.cc
oremosjuntos.co.cc:
oremosjuntos.co.cc (G) A 190.120.229.160
www,oremosjuntos.co.cc (G) CNAME oremosjuntos.co.cc
The coma (,) that you see after "www" is because I can not post urls in this forum. On dns server is actualy a dot (.)
And now my server configurations:
httpd.conf:
Code:
<VirtualHost gassgassnet.co.cc:80>
DocumentRoot "/var/www/html/gassgassnet.co.cc/html"
<Directory "/var/www/html/gassgassnet.co.cc/html">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
<VirtualHost oremosjuntos.co.cc:80>
DocumentRoot "/var/www/html/oremosjuntos.co.cc/html"
<Directory "/var/www/html/oremosjuntos.co.cc/html">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
(I can't post the complete file due to I'm not 11 post old in this forum)
The prolem I have is that wen I browse gassgassnet,co,cc it shows me the index file on /var/www/html/gassgassnet.co.cc/html (It's correct).
When I browse oremosjuntos,co,cc it shows me the index file on /var/www/html/oremosjuntos.co.cc/html (It's correct).
Wen I browse www,gassgassnet,co,cc it shows me the index file on /var/www/html/gassgassnet.co.cc/html (It's correct).
But...
When I browse www,oremosjuntos,co,cc it shows me the index file on /var/www/html/gassgassnet.co.cc/html (WRONG)
:cry:¿Why?
I will apreciatte any help.
Thanks to all.