My domain is: perryser.com
I ran this command: certbot --apache
It produced this output:
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for perryser.com
http-01 challenge for www.perryser.com
Error while running apachectl configtest.
AH00526: Syntax error on line 1 of /etc/httpd/conf/le_http_01_challenge_pre.conf:
Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration
Cleaning up challenges
Error while running apachectl configtest.
AH00526: Syntax error on line 1 of /etc/httpd/conf/le_http_01_challenge_pre.conf:
Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration
My web server is (include version): apache-2.4.33-3
The operating system my web server runs on is (include version): Arch Linux 4.17.2-1
I can login to a root shell on my machine (yes or no, or I don’t know): yes
What can I do to deal with that “AH00526” error?
" SSLEngine on
SSLCertificateFile “/etc/httpd/conf/server.crt”
SSLCertificateKeyFile “/etc/httpd/conf/server.key” " in the config file of a virtual host also gives an error:
Error while running apachectl configtest.
AH00526: Syntax error on line 19 of /etc/httpd/conf/vhosts/perryser.com:
Invalid command ‘SSLEngine’, perhaps misspelled or defined by a module not included in the server configuration
Thanks for reading