I tried to enable SSL on my Apache server on Ubuntu, but when I restart the Apache server it shows the following error:
Syntax error on line 3 of /etc/apache2/sites-enabled/000-default: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration Action 'configtest' failed.
That is complaining about mod_rewrite not your ssl cert.
Try
sudo a2enmod rewrite
sudo service apache2 restart
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.