By surdo
Hello, I have a domain name escuta.org which is configured with the name servers ns1.digitalocean.com, ns2.digitalocean.com and ns3.digitalocean.com.
Putting www.escuta.org in a browser (firefox) loads the Apache2 test page correctly, however escuta.org alone shows an “unable to connect” page. The other strange thing is that www.escuta.org is loaded as normal non-secure page, whereas escuta.org jumps to https://escuta.org in the address bar.
In the digitalocean DNS settings I have for the A and CNAME entries
CNAME www.escuta.org is an alias of escuta.org
A escuta.org directs to 157.245.6.200
CNAME mail.escuta.org is an alias mx.hover.com.cust.hostedemail.
NS escuta.org directs to ns1.digitalocean.com
NS escuta.org directs to ns2.digitalocean.com
NS escuta.org directs to ns3.digitalocean.com
Also the mail.escuta.org doesn’t redirect as it should, but it’s the “escuta.org” problem that I’m most concerned with.
Can anyone please help?
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @surdo,
I can see the domain escuta.org’s A record is working properly. That would mean that the issue is with the Apache virtual host file. Most probably there is one tiny misconfiguration that needs to be changed.
Can you provide us with the configuration file in order to provide further assistance in what might be reconfigured?
Regards, KFSys
Thank you and yes, that’s exactly right. The two definitions ServerName and ServerAlias were missing from escuta.org.conf (and from that of one other virtual host). Here is the entire escuta.org.conf file:
<VirtualHost *:80>
ServerAdmin nottheadmin@notthedomain.org
DocumentRoot /var/www/escuta.org/public_html
ServerName escuta.org
ServerAlias www.escuta.org
ErrorLog ${APACHE_LOG_DIR}/error-escuta.log
CustomLog ${APACHE_LOG_DIR}/access-escuta.log combined
</VirtualHost>
I’m currently trying a few things to get the MX entry to work. If I can’t fix it, I’ll send another message on this thread.
All the best,
Please check this article http://joabj.com/Writing/Tech/Tuts/Apache/Apache-Subdomains.html
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.