From: Art Cancro Date: Tue, 19 Dec 2006 14:27:30 +0000 (+0000) Subject: WebCit: back to port 2000 by default X-Git-Tag: v7.86~3779 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=095b93f00f15c8a45196b2f446c0170e08533989;p=citadel.git WebCit: back to port 2000 by default --- diff --git a/webcit/README.txt b/webcit/README.txt index c03deb700..e9d18b106 100644 --- a/webcit/README.txt +++ b/webcit/README.txt @@ -59,7 +59,8 @@ mucking about with Apache configuration files and directories. WebCit is not intended to be a general-purpose web server, however -- it *only* provides a front end to Citadel. If you do not have another web server running, you may run WebCit on port 80; however, if you have Apache or some other web server -listening on port 80, you must run WebCit on another port. +listening on port 80, you must run WebCit on another port. If you do not +specify a port number, WebCit will bind to port 2000. To compile from source, enter the usual commands: ./configure --prefix=/usr/local/webcit [or whatever directory you prefer] @@ -78,9 +79,9 @@ specified, such as: http://your.host.name - (or if you specified some other port, such as 8080 in this example...) + (or if you specified some other port, such as 2000 in this example...) - http://your.host.name:8080 + http://your.host.name:2000 ...and log in. diff --git a/webcit/setup.c b/webcit/setup.c index 105b61519..7c4b2cba0 100644 --- a/webcit/setup.c +++ b/webcit/setup.c @@ -454,7 +454,7 @@ void install_init_scripts(void) "requests?\n\nYou can use the standard port (80) if you are " "not running another\nweb server (such as Apache), otherwise " "select another port."); - sprintf(http_port, "80"); + sprintf(http_port, "2000"); set_value(question, http_port); uname(&my_utsname); sprintf(suggested_url, "http://%s:%s/", my_utsname.nodename, http_port); diff --git a/webcit/webcit.h b/webcit/webcit.h index 0ad8dd926..804c2ba31 100644 --- a/webcit/webcit.h +++ b/webcit/webcit.h @@ -121,7 +121,7 @@ extern locale_t wc_locales[]; #define SLEEPING 180 /* TCP connection timeout */ #define WEBCIT_TIMEOUT 900 /* WebCit session timeout */ -#define PORT_NUM 80 /* port number to listen on */ +#define PORT_NUM 2000 /* port number to listen on */ #define SERVER "WebCit v7.00" /* who's in da house */ #define DEVELOPER_ID 0 #define CLIENT_ID 4