CNAME Record Problem (showing server default page)

Questions regarding the DNS Server
BIND
openVZvsKVM
Posts: 2
Joined: Sat Sep 16, 2017 9:25 am

CNAME Record Problem (showing server default page)

Postby openVZvsKVM » Mon Dec 04, 2017 5:56 pm

Hi Friends,
I have Centos 7 VPS with Vestacp. Everything Working Perfect But When i am trying to create CNAME Record for example "Linux.mydomain.com" to "mydomain.com" and When i am visit website "Linux.mydomain.com" it should display "mydomain.com" but it display me VPS's defaul IP Page. How i can fix it? i want display main website at subdomain via CNAME Record.

sysdop
Posts: 6
Joined: Fri Dec 08, 2017 1:46 am

Re: CNAME Record Problem (showing server default page)

Postby sysdop » Fri Dec 08, 2017 2:28 am

openVZvsKVM wrote:Hi Friends,
I have Centos 7 VPS with Vestacp. Everything Working Perfect But When i am trying to create CNAME Record for example "Linux.mydomain.com" to "mydomain.com" and When i am visit website "Linux.mydomain.com" it should display "mydomain.com" but it display me VPS's defaul IP Page. How i can fix it? i want display main website at subdomain via CNAME Record.


@openVZvsKVM The default page can be deleted since it is a simple index.html, it is usually located in the admin user in the web folder according to the hostname of the affected server or domain.

Try connecting by ssh or FTP console to go to your destination.

openVZvsKVM
Posts: 2
Joined: Sat Sep 16, 2017 9:25 am

Re: CNAME Record Problem (showing server default page)

Postby openVZvsKVM » Sun Dec 10, 2017 4:57 am

sysdop wrote:
openVZvsKVM wrote:Hi Friends,
I have Centos 7 VPS with Vestacp. Everything Working Perfect But When i am trying to create CNAME Record for example "Linux.mydomain.com" to "mydomain.com" and When i am visit website "Linux.mydomain.com" it should display "mydomain.com" but it display me VPS's defaul IP Page. How i can fix it? i want display main website at subdomain via CNAME Record.


@openVZvsKVM The default page can be deleted since it is a simple index.html, it is usually located in the admin user in the web folder according to the hostname of the affected server or domain.

Try connecting by ssh or FTP console to go to your destination.



Friend Thanks for reply! My Problem is -> I have add new domain "domain.com" and i want add display website as my subdomain "subdomain.domain.com -> domain2.com" via CName Record. When i am trying to create CName reocrd in "domain.com" it is not display me "domain2.com" at "mysubdomain.com" it is display me server hostname index. I hope now you will understand!

vanderheyde
Posts: 15
Joined: Fri Dec 08, 2017 3:48 pm

Re: CNAME Record Problem (showing server default page)

Postby vanderheyde » Sun Dec 10, 2017 1:25 pm

openVZvsKVM wrote:
sysdop wrote:
openVZvsKVM wrote:Hi Friends,
I have Centos 7 VPS with Vestacp. Everything Working Perfect But When i am trying to create CNAME Record for example "Linux.mydomain.com" to "mydomain.com" and When i am visit website "Linux.mydomain.com" it should display "mydomain.com" but it display me VPS's defaul IP Page. How i can fix it? i want display main website at subdomain via CNAME Record.


@openVZvsKVM The default page can be deleted since it is a simple index.html, it is usually located in the admin user in the web folder according to the hostname of the affected server or domain.

Try connecting by ssh or FTP console to go to your destination.



Friend Thanks for reply! My Problem is -> I have add new domain "domain.com" and i want add display website as my subdomain "subdomain.domain.com -> domain2.com" via CName Record. When i am trying to create CName reocrd in "domain.com" it is not display me "domain2.com" at "mysubdomain.com" it is display me server hostname index. I hope now you will understand!


If I understand correctly, this is your setup:

Domain example.com:
@ A 1.1.1.1
sub CNAME example2.com.

Domain example2.com:
@ A 1.1.1.1

However, sub.example.com is showing the content of example.com instead example2.com?

If you browse directly to example2.com, do you get the correct content?


Return to “DNS Server”



Who is online

Users browsing this forum: Bing [Bot] and 2 guests