for example if I put example.domain.com if it manages to load the site, but if I put www.example.domain.com it gives me the following error
Forbidden
You don't have permission to access / on this server.
In the virtual host file I have the following:
The server is mounted on ubuntu 16.04
ServerAdmin [email protected]
ServerName ejemplo.dominio.com
ServerAlias www.ejemplo.dominio.com
DocumentRoot /var/www/ejemplo.dominio.com/public_html/
<Directory /var/www/ejemplo.dominio.com/public_html/>
Require all granted
AllowOverride All
</Directory>