Operating system: RHEL 8 OS version: 8.3
After enabling mail client auto configuration in Email Settings > Mail Client Configuration, manually visiting the xml file returns an error 500 page. Additionally, setting up an account in an email client results in the setup to fail. The only error in the error log is End of script output before headers: autoconfig.cgi. Attached are screenshots of the error log, 500 page, and email client error.
A (temporary) solution I have found is to create /var/www/cgi-bin/, create a directory for the domain owner, and move autoconfig.cgi to the directory. Having the script under /var/www/cgi-bin/domain/autoconfig.cgi and configuring apache to use /var/www/cgi-bin/domain/ instead of /home/domain/cgi-bin/ allows the script to run and thunderbird to automatically configure itself.
There’s no solution in Virtualmin currently, and no easy way to implement it, to run autoconfig.cgi without suexec support for executing files under /home