Domain with www does not work

Asked

Viewed 128 times

1

I did an Apache setup on Digital Ocean, only the domain only works without the www. Below is my configuration:

<VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName dominio.com
    ServerAlias www.dominio.com *.dominio.com
    DocumentRoot /var/www/dominio
    ErrorLog ${APACHE_LOG_DIR}/error_dominio.log
    CustomLog ${APACHE_LOG_DIR}/access_dominio.log combined
</VirtualHost>

Can anyone tell me what I’m doing wrong, or if you need any more commands?

  • Have you tried to verify the .htaccess ?

  • 1

    Have you mapped the entry type A correctly without www to your ip? I had this problem and solved there.

  • Josivan de souza, there’s a @ with my ip on type A

  • Leave blank and see the result.

  • Manage to resolve Josivan de souza, thanks for your help

  • Legal @Victorrajesh, put the solution applied here to share with the community. Greetings.

  • I created a CNAME with www, and my domain

  • @Victorrajesh If you can, create for that your question the answer as you did in the comment. That way the question will be marked as answered.

Show 3 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.