How to Redirect CNAME to Hosting

0

I'm trying to redirect a domain and CNAME to an IP in Locaweb.

It is a Cloud server that generates a temporary link to access the site through the browser. Let's suppose: link

In domain hosting I'm putting it like this:

dominio.com.br           A        XXX.X.XXX.XXX
www.dominio.com.br     CNAME      dominio.com.br

This IP is from the Locaweb server that is the site. I configured Virtual Host like this:

ServerName dominio.com.br
ServerAlias www.dominio.com.br
ServerAdmin [email protected]
DocumentRoot /var/www/dominio.com.br/public_html

<Directory /var/www/dominio.com.br/public_html>
   Options Indexes FollowSymLinks MultiViews
   AllowOverride None
   Order allow,deny
   allow from all
</Directory>

I've already circled a2ensite dominio.com.br.conf

And nothing happens.

When you access the site it looks like this:

  

You can only access this site at: link

From there he redirects to that domain and enters the site that I left as a test.

But how do I access the domain and fall into the site?

Apache2 Log - Error.Log

[Wed May 18 13:47:52.720700 2016] [mpm_prefork:notice] [pid 8080] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.16 configured -- resuming normal operations
[Wed May 18 13:47:52.720907 2016] [core:notice] [pid 8080] AH00094: Command line: '/usr/sbin/apache2'
    
asked by anonymous 18.05.2016 / 18:56

0 answers