http or https but not both)
+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
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
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]]
- 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
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.
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".
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
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 */
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
- https_port = atoi(optarg);
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
#endif
"[remotehost [remoteport]]\n");
return 1;
#endif
"[remotehost [remoteport]]\n");
return 1;
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