validate that FcgidWin32PreventOrphans is not configured in a virtual host
(tweak to r1311569)


git-svn-id: https://svn.apache.org/repos/asf/httpd/mod_fcgid/trunk@1312054 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/modules/fcgid/fcgid_conf.c b/modules/fcgid/fcgid_conf.c
index c1e9c12..ea573ff 100644
--- a/modules/fcgid/fcgid_conf.c
+++ b/modules/fcgid/fcgid_conf.c
@@ -775,6 +775,11 @@
     server_rec *s = cmd->server;
     fcgid_server_conf *config = ap_get_module_config(s->module_config,
                                                      &fcgid_module);
+    const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
+
+    if (err != NULL) {
+        return err;
+    }
 
     if (config->hJobObjectForAutoCleanup == NULL) {
         /* Create Win32 job object to prevent CGI process oprhaning