OpenBSD on FreeBSD Jail

Mark Moellering markmoellering at psyberation.com
Tue Jun 23 21:30:28 UTC 2020


When I try to run obhttpd on Freebsd in a Jail, I get the following error:


root at www:/usr/local/etc # obhttpd -d -vv
startup
server_tls_load_keypair: using certificate /etc/ssl/site.crt
socket_rlimit: max open files 56898
socket_rlimit: max open files 56898
socket_rlimit: max open files 56898
server_tls_load_keypair: using private key /etc/ssl/site.key
server_tls_load_keypair: using certificate /etc/ssl/site.crt
server_tls_load_keypair: using private key /etc/ssl/site.key
server_privinit: adding server www.site.com
parent: send server: Protocol not supported
logger exiting, pid 2436
server exiting, pid 2435
server exiting, pid 2433
server exiting, pid 2434

-----------------------------------------------------------------------------

Any idea what I am doing wrong.  Here is my obhttpd.conf file

----------------------------------------------------------------------------

# $OpenBSD: httpd.conf,v 1.20 2018/06/13 15:08:24 reyk Exp $

chroot "/www"

server "www.site.com" {
         listen on * port 80
         root "/main"
        block return 302 "https://$HTTP_HOST$REQUEST_URI"
}

server "www.site.com" {
         listen on * tls port 443
         root "/main"
         tls {
                certificate "/etc/ssl/site.crt"
                key "/etc/ssl/site.key"
        }
        directory index index.html
}

----------------------------------------------------------------------------


/www/main/index.html exists and everything is owned by www:www

Thanks!


Mark



More information about the freebsd-questions mailing list