Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section DNS Server
  • Search

CNAME Record Problem (showing server default page)

Questions regarding the DNS Server
BIND
Post Reply
  • Print view
Advanced search
9 posts • Page 1 of 1
openVZvsKVM
Posts: 20
Joined: Sat Sep 16, 2017 9:25 am
Contact:
Contact openVZvsKVM
Website Facebook Twitter

Os: CentOS 6x
Web: apache + nginx
CNAME Record Problem (showing server default page)
  • Quote

Post by 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.
Top

sysdop
Posts: 88
Joined: Fri Dec 08, 2017 1:46 am
Contact:
Contact sysdop
Website Skype

Os: CentOS 6x
Web: nginx + php-fpm
Re: CNAME Record Problem (showing server default page)
  • Quote

Post by 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.
Top

openVZvsKVM
Posts: 20
Joined: Sat Sep 16, 2017 9:25 am
Contact:
Contact openVZvsKVM
Website Facebook Twitter

Os: CentOS 6x
Web: apache + nginx
Re: CNAME Record Problem (showing server default page)
  • Quote

Post by 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!
Top

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

Os: Debian 7x
Web: apache + nginx
Re: CNAME Record Problem (showing server default page)
  • Quote

Post by 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?
Top

openVZvsKVM
Posts: 20
Joined: Sat Sep 16, 2017 9:25 am
Contact:
Contact openVZvsKVM
Website Facebook Twitter

Os: CentOS 6x
Web: apache + nginx
Re: CNAME Record Problem (showing server default page)
  • Quote

Post by openVZvsKVM » Mon Dec 11, 2017 1:30 pm

Image
it Should be display Anotherdomain.com at static.example.com right?
But when i visit static.example.com it display me example.com Server Default Page not Anotherdomain.com
Top

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

Os: Debian 7x
Web: apache + nginx
Re: CNAME Record Problem (showing server default page)
  • Quote

Post by vanderheyde » Mon Dec 11, 2017 2:01 pm

That's an odd one...

and what happens if you browse directly to anotherdomain.com? Is anotherdomain.com located on the same vestacp?
Top

openVZvsKVM
Posts: 20
Joined: Sat Sep 16, 2017 9:25 am
Contact:
Contact openVZvsKVM
Website Facebook Twitter

Os: CentOS 6x
Web: apache + nginx
Re: CNAME Record Problem (showing server default page)
  • Quote

Post by openVZvsKVM » Mon Dec 11, 2017 4:50 pm

anotherdomain.com is working fine and yes it is hosted in same vps.
one more example is i want display main website at subdomain via Cname record. example.com at subdomain.example.com via CNAME record.
But When i am trying it is not show me example.com or anotherdomain.com via cName it just show me Server defult page at CNAME record.
Top

paulandrei93
Posts: 1
Joined: Sat Sep 23, 2017 2:50 pm

Re: CNAME Record Problem (showing server default page)
  • Quote

Post by paulandrei93 » Mon Jan 08, 2018 2:09 am

someone give a solutions ? i have same problem...
Top

openVZvsKVM
Posts: 20
Joined: Sat Sep 16, 2017 9:25 am
Contact:
Contact openVZvsKVM
Website Facebook Twitter

Os: CentOS 6x
Web: apache + nginx
Re: CNAME Record Problem (showing server default page)
  • Quote

Post by openVZvsKVM » Fri Dec 14, 2018 4:00 pm

paulandrei93 wrote: ↑
Mon Jan 08, 2018 2:09 am
someone give a solutions ? i have same problem...
what is your vestacp configuration?????
Top


Post Reply
  • Print view

9 posts • Page 1 of 1

Return to “DNS Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password