* Replaced all instances of the name "Citadel/UX" with "Citadel"
[citadel.git] / webcit / README.txt
1                         WEBCIT for the Citadel System
2                                version 5.20
3  
4    Copyright (C) 1996-2004 by the authors.  Portions written by:
5         Art Cancro
6         Nathan Bryant
7         Nick Grossman
8         Andru Luvisi
9         Kevin Roth
10  
11 This program is free software released under the terms of the GNU General
12 Public License.  Please read COPYING.txt for more licensing information.
13  
14  
15  INTRODUCTION
16  ------------
17  
18  Citadel is a sophisticated BBS and groupware package which allows multiple
19 users to simultaneously access the system using a variety of user interfaces.
20 This package (WebCit) is a "middleware" package which presents an HTML/HTTP
21 user interface to the Citadel system.
22  
23  What this means in practice is that after you've installed WebCit, users can
24 access all functions of your system using any web browser.  Since this may be
25 the first Citadel experience for many new users, the screens have been designed
26 to be attractive and easy to navigate.
27  
28  
29  INSTALLATION
30  ------------
31  
32  Unline some web-based packages, WebCit contains its own standalone HTTP
33 engine.  As a result, you can get it running quickly without all that tedious
34 mucking about with Apache configuration files and directories.  WebCit is not
35 intended to replace your Apache server, however -- it *only* provides a front
36 end to Citadel.  If you do not have another web server running, you may run
37 WebCit on port 80; however, in the more likely situation that you have Apache
38 or some other web server listening on port 80, you must run WebCit on another
39 port.  The default is port 2000.
40  
41  To compile from source, enter the usual commands:
42   ./configure --prefix=/usr/local/webcit   [or whatever directory you prefer]
43   make
44   make install
45  
46  Then to initialize it:
47   cd /usr/local/webcit
48   ./setup
49  
50  After running setup, you just point your web browser to whatever port you
51 specified, such as:
52  
53   http://your.host.name:2000
54  
55  ...and log in.
56  
57  The included "setup" program is basically just an installation helper that
58 asks a series of questions and then adds the appropriate line to inittab to
59 start WebCit.  For most installations, this will do just fine.  If you have
60 special circumstances, or if you'd prefer to configure WebCit manually, you
61 may skip the setup program.  Instead, open /etc/inittab and add an entry
62 something like this:
63  
64  wc:2345:respawn:/usr/local/webcit/webserver
65  
66  
67  Several command-line options are also available.  Here's the usage for
68 the "webserver" program:
69   
70  webserver [-i ip_addr] [-p http_port] [-s] [-t tracefile]
71            [-c] [remotehost [remoteport]]
72  
73    *or*
74  
75  webserver [-i ip_addr] [-p http_port] [-s] [-t tracefile]
76            [-c] uds /your/citadel/directory
77  
78  Explained: 
79   
80   -> ip_addr: the IP address on which you wish your WebCit server to run.
81      You can leave this out, in which case WebCit will listen on all
82      available network interfaces.  Normally this will be the case, but if
83      you are running multiple Citadel systems on one host, it can be useful.
84  
85   -> http_port: the TCP port on which you wish your WebCit server to run.
86      This can be any port number at all; there is no standard.  Naturally,
87      you'll want to create a link to this port on your system's regular web
88      pages (presumably on an Apache server running on port 80).  Or, if you
89      are installing WebCit on a dedicated server, then you might choose to
90      use port 80 after all.
91  
92   -> tracefile: where you want WebCit to log to.  This can be a file, a
93      virtual console, or /dev/null to suppress logging altogether.
94  
95   -> The "-c" option causes WebCit to output an extra cookie containing the
96      identity of the WebCit server.  The cookie will look like this:
97        Set-cookie: wcserver=your.host.name
98      This is useful if you have a cluster of WebCit servers sitting behind a
99      load balancer, and the load balancer has the ability to use cookies to
100      keep track of which server to send HTTP requests to.
101  
102   -> The "-s" option causes WebCit to present an HTTPS (SSL-encrypted) web
103      service.  If you want to do both HTTP and HTTPS, you can simply run two
104      instances of WebCit on two different ports.
105  
106   -> remotehost: the name or IP address of the host on which your Citadel
107      server is running.  The default is "localhost".
108  
109   -> remoteport: the port number on which your Citadel server is running.
110      The default is port 504, the IANA-designated standard port for Citadel.
111  
112   -> "uds" is a keyword which tells WebCit that you wish to connect to a
113      Citadel server running on the same computer, rather than using a TCP/IP
114      socket.  /your/citadel/directory should be set to the actual name of the
115      directory in which you have Citadel installed
116      (such as /usr/local/citadel).  If you run Citadel and WebCit on the same
117      computer, this is recommended, as it will run much faster.
118  
119  
120  GRAPHICS
121  --------
122  
123  WebCit contains a small amount of graphics (buttons, etc.) which are kept
124 in its "static" subdirectory.  All site-specific graphics, however, are
125 fetched from the Citadel server.
126  
127  The "images" directory on a Citadel system contains these graphics.  The
128 ones which you may be interested in are:
129  
130  -> background.gif: a background texture displayed under all web pages
131  -> hello.gif: your system's logo.  It is displayed along with the logon
132     banner, and on the top left corner of each page.
133  
134  If you would like to deploy a "favicon.ico" graphic, please put it in
135 the static/ directory.  WebCit will properly serve it from there.
136  
137  
138  CALENDAR SERVICE
139  ----------------
140  
141  WebCit contains support for calendaring and scheduling.  In order to use it
142 you must have libical v0.24 (or newer) on your system.  You must also be
143 running a Citadel server with calendaring support.  The calendar service will
144 be automatically configured and installed if your host system supports it.
145  
146  WebCit also provides Kolab-compatible free/busy data for calendar clients.
147 Unlike the Kolab server, however, there is no need for each user to "publish"
148 free/busy data -- it is generated on-the-fly from the server-side calendar
149 of the user being queried.  Note: in order to support Kolab clients, you must
150 have WebCit running in HTTPS mode on port 443, because that is what Kolab
151 clients will be expecting.
152   
153  
154  HTTPS (encryption) SUPPORT
155  --------------------------
156  
157  WebCit now supports HTTPS for encrypted connections.  When a secure server
158 port is specified via the "-s" flag, an HTTPS service is enabled.
159  
160  The service will look in the "keys" directory for the following files:
161  
162  citadel.key   (your server's private key)
163  citadel.csr   (a certificate signing request)
164  citadel.cer   (your server's public certificate)
165  
166  If any of these files are not found, WebCit will first attempt to link to the
167 SSL files in the Citadel service's directory (if Citadel is running on the
168 same host as WebCit), and if that does not succeed, it will automatically
169 generate a key and certificate.
170  
171  It is up to you to decide whether to use an automatically generated,
172 self-signed certificate, or purchase a certificate signed by a well known
173 authority.
174   
175  
176  CONCLUSION
177  ----------
178  
179  That's all you need to know to get started.  If you have any questions or
180 comments, please visit UNCENSORED! BBS, the home of Citadel, at
181 uncensored.citadel.org.