robertdebock/ansible-role-httpd

mod_rewrite not automatically enabled with remote

Closed this issue · 1 comments

When defining a remote Vhost, Mod_rewrite is not automatically loaded as a module. Therefore it throws this error:

FAILED! => {"changed": false, "cmd": ["apachectl", "-t"], "delta": "0:00:00.030985", "end": "2022-04-21 12:14:44.402133", "msg": "non-zero return code", "rc": 1, "start": "2022-04-21 12:14:44.371148", "stderr": "AH00526: Syntax error on line 10 of /etc/apache2/conf-enabled/mail_remote.conf:\nInvalid command 'ProxyRemote', perhaps misspelled or defined by a module not included in the server configuration", "stderr_lines": ["AH00526: Syntax error on line 10 of /etc/apache2/conf-enabled/mail_remote.conf:", "Invalid command 'ProxyRemote', perhaps misspelled or defined by a module not included in the server configuration"], "stdout": "Action '-t' failed.\nThe Apache error log may have more information.", "stdout_lines": ["Action '-t' failed.", "The Apache error log may have more information."]}

Tested on Ubuntu 20.04 LTS

closed with #15