Invalid command 'RewriteEngine'
Invalid command 'ProxyPass'
To fix, had to enable the apache module, in Ubuntu, used this:
sudo a2enmod rewrite
sudo a2enmod proxy_http
sudo systemctl restart apache2
Appendix errors faced
Dec 01 13:01:38 linux-u20 systemd[1]: Starting The Apache HTTP Server...
Dec 01 13:01:38 linux-u20 apachectl[6829]: AH00526: Syntax error on line 3 of /etc/apache2/sites-enabled/mysite.conf:
Dec 01 13:01:38 linux-u20 apachectl[6829]: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
Dec 01 13:01:38 linux-u20 apachectl[6809]: Action 'start' failed.
Dec 01 13:01:38 linux-u20 apachectl[6809]: The Apache error log may have more information.
Dec 01 13:01:38 linux-u20 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Dec 01 13:01:38 linux-u20 systemd[1]: apache2.service: Failed with result 'exit-code'.
Dec 01 13:01:38 linux-u20 systemd[1]: Failed to start The Apache HTTP Server.
Dec 01 13:03:42 linux-u20 systemd[1]: Starting The Apache HTTP Server...
Dec 01 13:03:42 linux-u20 apachectl[6921]: AH00526: Syntax error on line 6 of /etc/apache2/sites-enabled/mysite.conf:
Dec 01 13:03:42 linux-u20 apachectl[6921]: Invalid command 'ProxyPass', perhaps misspelled or defined by a module not included in the server configuration
Dec 01 13:03:42 linux-u20 apachectl[6906]: Action 'start' failed.
Dec 01 13:03:42 linux-u20 apachectl[6906]: The Apache error log may have more information.
Dec 01 13:03:42 linux-u20 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Dec 01 13:03:42 linux-u20 systemd[1]: apache2.service: Failed with result 'exit-code'.
Dec 01 13:03:42 linux-u20 systemd[1]: Failed to start The Apache HTTP Server.
No comments:
Post a Comment