NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to bind bozohttpd / inetd to port 8080?



Hi,

Am 18.12.2021 um 11:47 schrieb Ignatios Souvatzis:
On Sat, Dec 18, 2021 at 11:34:12AM +0100, Matthias Petermann wrote:

I am currently trying to have bozohttpd listen on port 8080 instead of port
80 via inetd.

In /etc/services there is an entry "http-alt" for this.

yes, but in the distributed version there are two others (591 and
8008), both for TCP and UDP.  I guess you'll have to edit your
/etc/services and put comment signs before the two you don't want.

Regards,
	-is

You are right:

```
extranet$ getent services http-alt
http-alt            591/tcp
```

I had not counted on that - thanks for the tip :-)
There were to more (8008) and after commenting them out it looks good:

```
extranet$ doas vi /etc/services
extranet$ doas services_mkdb
extranet$ getent services http-alt
http-alt           8080/tcp
```

Many greetings
Matthias


Home | Main Index | Thread Index | Old Index