ispconfig sets the directive "ScriptAlias /cgi-bin/ /var/www/web2/cgi-bin/" With this directive, Apache will not server any pages (html or scripts) from the cgi-bin directory. If I manually change ScriptAlias to Alias, everything seems to work. What can I do to fix this?
I am still not understanding what to change. The lines regarding scriptsalias seem to be correct. $cgi = ""; if($web["web_cgi"] == 1) $cgi = "ScriptAlias /cgi-bin/ ".$mod->system->server_conf["server_path_httpd_root"]."/"."web".$web["doc_id"]."/"."cgi-bin/ AddHandler cgi-script .cgi AddHandler cgi-script .pl";
Chane: if($web["web_cgi"] == 1) $cgi = "ScriptAlias /cgi-bin/ ".$mod->system->server_conf["server_path_httpd_root"]."/"."web".$web["doc_id"]."/"."cgi-bin/ AddHandler cgi-script .cgi AddHandler cgi-script .pl"; to: if($web["web_cgi"] == 1) $cgi = "Alias /cgi-bin/ ".$mod->system->server_conf["server_path_httpd_root"]."/"."web".$web["doc_id"]."/"."cgi-bin/ AddHandler cgi-script .cgi AddHandler cgi-script .pl";