0
votes

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.

1

1 Answers

2
votes

That is complaining about mod_rewrite not your ssl cert.

Try

sudo a2enmod rewrite
sudo service apache2 restart