ProFTP
NextCloud
LAMP
CertBot
Fail2Ban
All went well and was working fine.
I ran dietpi-letsencrypt and setup http://www.mydomain.com
and everything was fine.
I ran dietpi-letsencrypt again with mydomain.com
All was good, but http://www.mydomain.com stopped working.
So I tried entering two entries into dietpi-letsencrypt, i.e. "mydomain.com http://www.mydomain.com" without the quotes.
This created an error, and now apache2 is not starting up, I get the following error
Code: Select all
root@HomePi:~# service apache2 status
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2)
Drop-In: /lib/systemd/system/apache2.service.d
└─forking.conf
Active: failed (Result: exit-code) since Sat 2016-10-15 14:52:23 UTC; 52min ago
Process: 2054 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
Oct 15 14:52:23 HomePi apache2[2054]: Starting web server: apache2 failed!
Oct 15 14:52:23 HomePi apache2[2054]: The apache2 configtest failed. ... (w...).
Oct 15 14:52:23 HomePi apache2[2054]: Output of config test was:
Oct 15 14:52:23 HomePi apache2[2054]: AH00526: Syntax error on line 3 of /e...f:
Oct 15 14:52:23 HomePi apache2[2054]: ServerName takes one argument, The ho...er
Oct 15 14:52:23 HomePi apache2[2054]: Action 'configtest' failed.
Oct 15 14:52:23 HomePi apache2[2054]: The Apache error log may have more in...n.
Oct 15 14:52:23 HomePi systemd[1]: apache2.service: control process exited,...=1
Oct 15 14:52:23 HomePi systemd[1]: Failed to start LSB: Apache2 web server.
Oct 15 14:52:23 HomePi systemd[1]: Unit apache2.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
root@HomePi:~#
2) How do I set up lets encrypt properly with http://www.mydomain.com and mydomain.com?
Thanks.
Regards,
Keith Ellis