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
?– Guilherme SpinXO
Have you mapped the entry type A correctly without www to your ip? I had this problem and solved there.
– josivan
Josivan de souza, there’s a @ with my ip on type A
– Victor Rajesh
Leave blank and see the result.
– josivan
Manage to resolve Josivan de souza, thanks for your help
– Victor Rajesh
Legal @Victorrajesh, put the solution applied here to share with the community. Greetings.
– josivan
I created a CNAME with www, and my domain
– Victor Rajesh
@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.
– Ismael