If I have a config file that looks like this

chroot "/var/www"

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

server "default"  
{
        listen on * tls port 443
        tls  
        {
                certificate 
"/etc/letsencrypt/live/babayaga.neotext.ca/fullchain.pem"
                key "/etc/letsencrypt/live/babayaga.neotext.ca/privkey.pem"
        }
        location "/*"  
        {
                root "/htdocs"
        }
}

types  
        {
                include "/usr/share/misc/mime.types"
        }

I get errors as follows:

 /usr/sbin/httpd -d 
startup
/etc/httpd.conf:18: syntax error
/etc/httpd.conf:32: syntax error
/usr/share/misc/mime.types:3: syntax error
/usr/share/misc/mime.types:62: syntax error
/usr/share/misc/mime.types:69: syntax error
/usr/share/misc/mime.types:80: syntax error
/usr/share/misc/mime.types:89: syntax error
/etc/httpd.conf:35: syntax error
no actions, nothing to do
logger exiting, pid 19104
server exiting, pid 99393
server exiting, pid 30412
server exiting, pid 68022

but using the SAME CONFIG layed out differently
# Servers
#

chroot "/var/www"

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

server "default" {
        listen on * tls port 443
        tls {
                certificate 
"/etc/letsencrypt/live/babayaga.neotext.ca/fullchain.pem"
                key "/etc/letsencrypt/live/babayaga.neotext.ca/privkey.pem"
        }
        location "/*" {
                root "/htdocs"
        }
}

types {
        include "/usr/share/misc/mime.types"
}

gets no errors:

babayaga:/etc# /usr/sbin/httpd -d 
startup

If anyone has some idea about the syntax of this setup I'd really like to hear 
from yous ;^)

Thanks,

Dhu

 -- 
 Je suis Canadien. Ce n'est pas Francais ou Anglaise.  
  C'est une esp`ece de sauvage: ne obliviscaris, vix ea nostra voco;-) 

Reply via email to