- The red metacoder side of a mad betacoder scientist -
Thursday, June 18, 2020
[SOLVED] initramfs unpacking failed: write error (VirtualBox)
Sunday, May 31, 2020
Domain serving SSL certificate of a subdomain
Today one of my sites was serving a SSL certificate of a subdomain instead of the domain's one, after configuring the SSL certificate for the subdomain with certbot
for Apache.
It took me some hours of investigating and tries.
The problem is that certbot
changed the domain.conf
file in /etc/apache2/sites-available
folder to serve the subdomain's SSL certificate. Editing the file and reloading Apache solved it.
Wednesday, January 8, 2020
Time adjustment for DigitalOcean droplets
I have some droplets on DigitalOcean, but I noted that the system time (in all of them) is not correctly synced with NTP servers.
The solution that worked for me is to include the following line at the end of /etc/crontab
:
* * * * * root /sbin/hwclock -s
That command instructs the system to copy time from hardware (which is more precise) every minute. That solved my problem.