Changeset 584 for trunk/zoo-project/zoo-kernel
- Timestamp:
- Feb 13, 2015, 1:29:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r583 r584 969 969 setMapInMaps (m, "main", "isSoap", "false"); 970 970 971 if (strlen (cgiServerName) > 0) 972 { 973 char tmpUrl[1024]; 974 if (strncmp (cgiServerPort, "80", 2) == 0) 975 { 976 sprintf (tmpUrl, "http://%s%s", cgiServerName, cgiScriptName); 977 } 978 else 979 { 980 sprintf (tmpUrl, "http://%s:%s%s", cgiServerName, cgiServerPort, 981 cgiScriptName); 982 } 983 #ifdef DEBUG 984 fprintf (stderr, "*** %s ***\n", tmpUrl); 985 #endif 986 setMapInMaps (m, "main", "serverAddress", tmpUrl); 987 } 971 if(strlen(cgiServerName)>0) 972 { 973 char tmpUrl[1024]; 974 975 if ( getenv("HTTPS") != NULL && strncmp(getenv("HTTPS"), "on", 2) == 0 ) { // Knut: check if non-empty instead of "on"? 976 if ( strncmp(cgiServerPort, "443", 3) == 0 ) { 977 sprintf(tmpUrl, "https://%s%s", cgiServerName, cgiScriptName); 978 } 979 else { 980 sprintf(tmpUrl, "https://%s:%s%s", cgiServerName, cgiServerPort, cgiScriptName); 981 } 982 } 983 else { 984 if ( strncmp(cgiServerPort, "80", 2) == 0 ) { 985 sprintf(tmpUrl, "http://%s%s", cgiServerName, cgiScriptName); 986 } 987 else { 988 sprintf(tmpUrl, "http://%s:%s%s", cgiServerName, cgiServerPort, cgiScriptName); 989 } 990 } 991 #ifdef DEBUG 992 fprintf(stderr,"*** %s ***\n",tmpUrl); 993 #endif 994 setMapInMaps(m,"main","serverAddress",tmpUrl); 995 } 988 996 989 997 /** … … 1089 1097 int saved_stdout = dup (fileno (stdout)); 1090 1098 dup2 (fileno (stderr), fileno (stdout)); 1091 if (int res = 1099 if (int res = 1092 1100 recursReaddirF (m, n, conf_dir, NULL, saved_stdout, 0, 1093 1101 printGetCapabilitiesForProcess) < 0)
Note: See TracChangeset
for help on using the changeset viewer.