Hi,

I read the man pages for httpd and httpd.conf but I remain clueless.

I would like to serve static content (directory listings and contents).
Must I use a chroot for httpd? If so, how do I set it up?

I have my content in /var/content/webserver/.. I would like httpd to
automatically index the contents.

Trying to massage the example/httpd.conf didn't work. I get a 403 when
I try to access my website.

# $OpenBSD: httpd.conf,v 1.18 2018/03/23 11:36:41 florian Exp $

server "example.com" {
        listen on * port 80 
        listen on :: port 80
        location "/var/content/webserver/htdocs/*" {
                directory auto index
        }
}

Thanks

/jl

Reply via email to