zPanel overwrites the httpd-vhosts.conf file every time apache restarts or the server is rebooted. When zPanel (10.1.1) creates virtual domain entries in httpd-vhosts.conf it includes the entry:
<location /cgi-bin>
AddHandler cgi-script .cgi .pl
Options ExecCGI -Indexes
</location>
Unfortunately this includes an error: the - in front of "Indexes" should not be there and causes current versions of apache to fail to restart. I can manually edit this file (multiple entries, one for each virtual domain) but I have to do this every time the server or apache restarts. The questions is, where does zPanel get this bit of code? I have looked in the SQL tables, the config files, and in the php files but can't find it. Can someone point me in the right direction please?
Thanks,
Cliff
<location /cgi-bin>
AddHandler cgi-script .cgi .pl
Options ExecCGI -Indexes
</location>
Unfortunately this includes an error: the - in front of "Indexes" should not be there and causes current versions of apache to fail to restart. I can manually edit this file (multiple entries, one for each virtual domain) but I have to do this every time the server or apache restarts. The questions is, where does zPanel get this bit of code? I have looked in the SQL tables, the config files, and in the php files but can't find it. Can someone point me in the right direction please?
Thanks,
Cliff