-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Testing the beta install on Debian 11.
When enabling git for a domain or importing a domain with git, apache2 won’t (re)start.
Jul 12 12:02:54 cloud11.website.com apachectl[11746]: AH00526: Syntax error on line 46 of /etc/apache2/sites-enabled/website.com.conf:
Jul 12 12:02:54 cloud11.website.com apachectl[11746]: Invalid command 'DAV', perhaps misspelled or defined by a module not included in the se>
Jul 12 12:02:54 cloud11.website.com apachectl[11743]: Action 'start' failed.
Jul 12 12:02:54 cloud11.website.com apachectl[11743]: The Apache error log may have more information.
Jul 12 12:02:54 cloud11.website.com systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
The problem is that the git module adds DAV to the apache config file:
DAV on
Which causes the error at apache2 startup, because mod_dav and mod_dav_fs are not enabled by default.
I understood that DAV is no longer supported. If that is the case enabling git should also no longer add DAV lines to the config files. And git should only be supported through ssh and no longer through DAV. Which also means the git example commands shown should be updated as they right now tell users how to use git through DAV.
As an alternative it might be a good idea to check if mod_dav and mod_davfs are enabled. It looks like there is a check for mod_rewrite. If there was another check for mod_dav and mod_davfs and an exception is thrown when they are not enabled, then at least apache2 would restart properly.