On Mon, 22 Nov 1999, Andu wrote:
> >OK, so I downloaded it, got it started (looks like it requires MC 2.3;
> >fine). But now I don't really understand how to use it. Scott said I had to
> >change the port from 8080 if I already have another server running. How can
> >I find out what another valid port number is?
>
> You can use any port number. Conventionally 80 is for web servers, 21 is
> for ftp servers 25 is for mail.
Note that most UNIX systems won't let you do an accept on a port with
a number lower than 1024 unless you run the process as root. Doing
that is OK for production environments, but for development you'll
want to run the server as a normal user. Some common choices for HTTP
development are 1080 and 8080. Not sure why, maybe they're just easy
to remember.
> If the client doesn't specify the port it is understood it is one of the
> above but if you want to use another port for mchttpd the client must
> specify that in the address (i.e. 145,134.1.2:8080/file.html) since the
> server listens to that port. You can of course have the server listen to a
> number of ports.
This isn't supported in the current mchttpd but would probably be easy
to add if anyone could think of a good reason why this would be
necessary (I can't ;-)
Scott
> Regards, Andu
********************************************************
Scott Raney [EMAIL PROTECTED] http://www.metacard.com
MetaCard: You know, there's an easier way to do that...