with no VirtualScriptAlias directives.
PR: 6829
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86974
13f79535-47bb-0310-9956-
ffa450edef68
conf = (mva_sconf_t *) ap_get_module_config(r->server->module_config,
&vhost_alias_module);
- cgi = strstr(r->uri, "cgi-bin/");
- if (cgi && cgi - r->uri != strspn(r->uri, "/")) {
- cgi = NULL;
+ cgi = NULL;
+ if (conf->cgi_root) {
+ cgi = strstr(r->uri, "cgi-bin/");
+ if (cgi && cgi - r->uri != strspn(r->uri, "/")) {
+ cgi = NULL;
+ }
}
if (cgi) {
mode = conf->cgi_root_mode;