Question

Domain only working without "WWW"

Posted August 25, 2021 128 views
Networking

Hi guys.

So I just add a new project and purched a new droplet, with a new version of Ubuntu (20.04).

I have installed the Hestia Control Panel, becouse I couldn’t install Vesta.

I tried to transfer my website from Vesta (installed on a Ubuntu 14.0) to Hestia (Ubuntu 20.04).

The problem is that now my website only works withou “www”.

When a try to acess with “www” shows me a page like:

“Success!
Your new web server is ready to use.”

I have transfered the domain from one droplet to another and adjusted the DNS records as I always do on Vesta and on DigitalOcean DNS, with the CNAME and that kind of thing.

The interface of Hestia is a little bit different, but I dont know what i have done wrong.

Edit Web Domain
Domain: iggi.com.br
IP Address: 137.184.41.49

Statistics Authorization: Not checked
Enable domain redirection: Not checked
Enable SSL for this domain: Not checked

Edit DNS IMAGE HERE
Record | Type| Priority | TTL | IP or Value

@ NS 14400 ns1.digitalocean.com.
@ NS 14400 ns2.digitalocean.com.
@ A 14400 137.184.41.49
www A 14400 137.184.41.49
ftp A 14400 137.184.41.49
mail A 14400 137.184.41.49
smtp A 14400 137.184.41.49
pop A 14400 137.184.41.49
imap A 14400 137.184.41.49
@ MX 0 14400 mail.iggi.com.br.
@ TXT 14400 “v=spf1 a mx ip4:137.184.41.49 -all”
_dmarc TXT 14400 “v=DMARC1; p=quarantine; pct=100”
webmail A 14400 137.184.41.49
** * CNAME 1800 iggi.com.br.
www CNAME 1800 iggi.com.br.**

DIGITALOCEAN Configuration IMAGE HERE

Type | __Hostname ____ | ________Value___________|TTL_

CNAME|_www.iggi.com.br|is an alias of iggi.com.br_|1800
_CNAME
|
*.iggi.com.br|is an alias of iggi.com.br__|1800
_
A|_iggi.com.br_|directs to 137.184.41.49____|3600
_
NS|__iggi.com.br___|directs to ns1.digitalocean.com.|1800
_
NS|__iggi.com.br___|directs to ns2.digitalocean.com.|1800
_
NS|__iggi.com.br____|directs to ns3.digitalocean.com.|1800

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
2 answers

Hi there,

I have just checked your DNS settings and they seem correct for both the www version and the non-www version.

However I’ve noticed that you currently have a 301 redirect for HTTP to HTTPS, but you do not have a valid SSL certificate installed. This is why you might get a connection refused or an SSL error when visiting your website via your browser.

What I would suggest is to install a free Let’s Encrypt SSL certificate so that you could be able to visit your website via HTTPS as well.

Let me know how it goes!
Regards,
Bobby

Hi @igor_juliao,

First, I see there are two www records, one is an A record and the other a CNAME record, I’ll recommend removing one.

Additionally, there is a root CNAME record:

** * CNAME 1800 iggi.com.br.

Having a root CNAME record for your domain results in pretty inconsistent DNS issues so I’ll suggest removing that one as well.

Once you do, I’ll recommend checking the Configuration file on your Hestia Control Panel, does it include the www.domain or not?

Additionally, I can see you’ve posted one IP but at the moment your Domain loads from another.

One other thing I noticed is that you have an HTTP to HTTPS redirection on your website which comes as not secured. You might want to install Let’s Encrypt or any other SSL on your website.