On Mon, 2018-07-02 at 06:38 -0500, edgar@pettijohn-web.com wrote:
> On Jul 2, 2018 6:30 AM, John Long <codeblue@inbox.lv> wrote:
> >
> > On Mon, 2018-07-02 at 06:27 -0500, edgar@pettijohn-web.com wrote:
> > > 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
> > > }
> >
> > Thank you. What has to be in the chroot besides the content I want
> > to
> > serve?
> >
>
> Nothing for static content. If you add Perl or other such things you
> will have to add a lot of stuff.
Ah great, thanks, I'll try it asap.
/jl
No comments:
Post a Comment