Question
Can't setup subdomain ( This site can’t be reached )
My setup and what i did so far, for DNS records i have set for A record mydomain.com and pointed to the ip address, for AAAA record same and CNAME www.mydomain.com, i’ve setup the virtual host – >
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName mydomain.com
ServerAlias www.mydomain.com
DocumentRoot /var/www/mydomain.com/publichtml
ErrorLog ${APACHELOGDIR}/error.log
CustomLog ${APACHELOGDIR}/access.log combined
</VirtualHost>
enable it with a2ensite, created the root path in /var/www/mydomain.com/publichtml, restart apache anddd This site can’t be reached, i’ve also added certbot for the main domain and the subdomain,…i need some help with this, for the main domain everything is working fine and i did the same steps for the subdomain.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×