]> code.citadel.org Git - citadel.git/commitdiff
* Return to the old command-line usage (-s for https, service is either
authorArt Cancro <ajc@citadel.org>
Tue, 1 Jun 2004 18:44:20 +0000 (18:44 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 1 Jun 2004 18:44:20 +0000 (18:44 +0000)
  http or https but not both)

webcit/ChangeLog
webcit/README.txt
webcit/webserver.c

index 1ae01db187c732246934d09fb6950dabff3d5b5e..2dffccba26d926f6d0889015ee24f47e3d24ddb0 100644 (file)
@@ -1,4 +1,8 @@
 $Log$
 $Log$
+Revision 510.9  2004/06/01 18:44:20  ajc
+* Return to the old command-line usage (-s for https, service is either
+  http or https but not both)
+
 Revision 510.8  2004/06/01 03:32:28  ajc
 * Add "permanent room" setting to room edit screen
 * create room -- allow longer strings
 Revision 510.8  2004/06/01 03:32:28  ajc
 * Add "permanent room" setting to room edit screen
 * create room -- allow longer strings
@@ -1838,3 +1842,4 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
+
index aa1b553b85d98ef0881645c28e018336f4ea50f0..eeb70f5a6013a6e2a45a898b2e54a081b2c1923f 100644 (file)
@@ -67,13 +67,11 @@ something like this:
  Several command-line options are also available.  Here's the usage for
 the "webserver" program:
   
  Several command-line options are also available.  Here's the usage for
 the "webserver" program:
   
- webserver [-p http_port] [-s https_port] [-t tracefile]
-           [-c] [remotehost [remoteport]]
+ webserver [-p http_port] [-s] [-t tracefile] [-c] [remotehost [remoteport]]
  
    *or*
  
  
    *or*
  
- webserver [-p http_port] [-s https_port] [-t tracefile]
-           [-c] uds /your/citadel/directory
+ webserver [-p http_port] [-s] [-t tracefile] [-c] uds /your/citadel/directory
  
  Explained: 
   
  
  Explained: 
   
@@ -84,11 +82,6 @@ the "webserver" program:
      are installing WebCit on a dedicated server, then you might choose to
      use port 80 after all.
  
      are installing WebCit on a dedicated server, then you might choose to
      use port 80 after all.
  
-  -> https_port: an optional TCP port on which you wish your WebCit server
-     to run an SSL-encrypted web service.  The standard port number for this
-     is 443, and if you're not already running a secure web server you might
-     choose to use that port.  Otherwise, select any free port number.
   -> tracefile: where you want WebCit to log to.  This can be a file, a
      virtual console, or /dev/null to suppress logging altogether.
  
   -> tracefile: where you want WebCit to log to.  This can be a file, a
      virtual console, or /dev/null to suppress logging altogether.
  
@@ -99,6 +92,10 @@ the "webserver" program:
      load balancer, and the load balancer has the ability to use cookies to
      keep track of which server to send HTTP requests to.
  
      load balancer, and the load balancer has the ability to use cookies to
      keep track of which server to send HTTP requests to.
  
+  -> The "-s" option causes WebCit to present an HTTPS (SSL-encrypted) web
+     service.  If you want to do both HTTP and HTTPS, you can simply run two
+     instances of WebCit on two different ports.
   -> remotehost: the name or IP address of the host on which your Citadel/UX
      server is running.  The default is "localhost".
  
   -> remotehost: the name or IP address of the host on which your Citadel/UX
      server is running.  The default is "localhost".
  
@@ -142,7 +139,9 @@ be automatically configured and installed if your host system supports it.
  WebCit also provides Kolab-compatible free/busy data for calendar clients.
 Unlike the Kolab server, however, there is no need for each user to "publish"
 free/busy data -- it is generated on-the-fly from the server-side calendar
  WebCit also provides Kolab-compatible free/busy data for calendar clients.
 Unlike the Kolab server, however, there is no need for each user to "publish"
 free/busy data -- it is generated on-the-fly from the server-side calendar
-of the user being queried.
+of the user being queried.  Note: in order to support Kolab clients, you must
+have WebCit running in HTTPS mode on port 443, because that is what Kolab
+clients will be expecting.
   
  
  HTTPS (encryption) SUPPORT
   
  
  HTTPS (encryption) SUPPORT
index 507d0ac8402be051dde60d056a8b00f56e6ed2d6..63d903024025c8bceeae8864461c0335a5a5f9ce 100644 (file)
@@ -246,12 +246,11 @@ int main(int argc, char **argv)
        pthread_attr_t attr;    /* Thread attributes */
        int a, i;               /* General-purpose variables */
        int port = PORT_NUM;    /* Port to listen on */
        pthread_attr_t attr;    /* Thread attributes */
        int a, i;               /* General-purpose variables */
        int port = PORT_NUM;    /* Port to listen on */
-       int https_port = (-1);
        char tracefile[PATH_MAX];
 
        /* Parse command line */
 #ifdef HAVE_OPENSSL
        char tracefile[PATH_MAX];
 
        /* Parse command line */
 #ifdef HAVE_OPENSSL
-       while ((a = getopt(argc, argv, "hp:t:cs:")) != EOF)
+       while ((a = getopt(argc, argv, "hp:t:cs")) != EOF)
 #else
        while ((a = getopt(argc, argv, "hp:t:c")) != EOF)
 #endif
 #else
        while ((a = getopt(argc, argv, "hp:t:c")) != EOF)
 #endif
@@ -282,13 +281,13 @@ int main(int argc, char **argv)
                        }
                        break;
                case 's':
                        }
                        break;
                case 's':
-                       https_port = atoi(optarg);
+                       is_https = 1;
                        break;
                default:
                        fprintf(stderr, "usage: webserver [-p http_port] "
                                "[-t tracefile] [-c] "
 #ifdef HAVE_OPENSSL
                        break;
                default:
                        fprintf(stderr, "usage: webserver [-p http_port] "
                                "[-t tracefile] [-c] "
 #ifdef HAVE_OPENSSL
-                               "[-s https_port] "
+                               "[-s] "
 #endif
                                "[remotehost [remoteport]]\n");
                        return 1;
 #endif
                                "[remotehost [remoteport]]\n");
                        return 1;
@@ -308,16 +307,6 @@ int main(int argc, char **argv)
        if (chdir(WEBCITDIR) != 0)
                perror("chdir");
 
        if (chdir(WEBCITDIR) != 0)
                perror("chdir");
 
-       /*
-        * If an HTTPS port was specified, fork an HTTPS server.
-        */
-       if (https_port > 0) {
-               if (fork() == 0) {
-                       is_https = 1;
-                       port = https_port;
-               }
-       }
-
         /*
          * Set up a place to put thread-specific data.
          * We only need a single pointer per thread - it points to the
         /*
          * Set up a place to put thread-specific data.
          * We only need a single pointer per thread - it points to the