Monday, July 02, 2018

Re: httpd setup info?

On Jul 2, 2018 5:58 AM, John Long <codeblue@inbox.lv> wrote:
>
> 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 $
>

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

I think the listen directive changed recently, so if it fails look into that as the cause.
>
> Thanks
>
> /jl
>

No comments:

Post a Comment