On Mon, Nov 18, 2024 at 05:58:20AM +0000, Sha'ul wrote:
> $ cat /etc/rc.conf.local
> httpd_flags=
> 
> My home router router set to port forward port 80 and port 443 to the
> internal ip of machine. There is no SSL issued for my domain and pf is
> disabled.
> 
> $ rcctl -d start httpd
> doing _rc_parse_conf
> httpd_flags empty, using default ><
> /etc/rc.d/httpd: need root privileges

That last message there indicates an error condition.

The most likely explanation is that since you are trying to run 
httpd as a regular user, it does not have sufficient privileges to bind
to the specified port.

If you have a reasonable doas(1) configuration, prepending doas to the
rcctl command should rid you of the error and have httpd running.

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
https://bsdly.blogspot.com/ https://www.bsdly.net/ https://www.nuug.no/
"Remember to set the evil bit on all malicious network traffic"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.

Reply via email to