Hi Benno

guest2# mount
/dev/sd0a on / type ffs (local)
/dev/sd0k on /home type ffs (local, nodev, nosuid)
/dev/sd0d on /tmp type ffs (local, nodev, nosuid)
/dev/sd0f on /usr type ffs (local, nodev)
/dev/sd0g on /usr/X11R6 type ffs (local, nodev)
/dev/sd0h on /usr/local type ffs (local, nodev, wxallowed)
/dev/sd0i on /home/backups type ffs (local, nodev, nosuid)
/dev/sd0e on /var type ffs (local, nodev, nosuid)
/dev/sd0j on /var/www type ffs (local, nodev, nosuid)

guest2# ls -la /var/www
total 16896
drwxrwx---  24 build  wobj       1024 Oct  4 13:04 .
drwxr-xr-x  23 root   wheel       512 Mar 25  2018 ..
drwxr-xr-x   2 www    www         512 Mar 25  2018 acme
drwxr-xr-x   2 root   daemon      512 Oct  4 12:15 bin
drwx-----T   2 www    www         512 Mar 25  2018 cache
drwxr-xr-x   2 root   daemon      512 Mar 25  2018 cgi-bin
drwxr-xr-x   3 www    www         512 Oct  4 12:16 conf
drwxr-xr-x   3 www    www         512 Oct  5 10:59 htdocs
drwxr-xr-x   2 www    www         512 May 17  2017 icby
drwxr-xr-x  21 www    www        1536 Aug 30 18:08 igs
drwxr-xr-x   2 www    www         512 Oct  4 17:06 logs
drwxr-xr-x  32 www    www        1024 Jul 12 16:33 private
drwxr-xr-x   2 root   daemon      512 Oct  5 12:26 run
drwxr-xr-x   5 www    www         512 May 11 14:48 sani-t
drwxr-xr-x   3 www    www         512 Aug 30 20:37 t-shop
drwxr-xr-x  20 www    www        1024 Jul 13 17:28 t-staff
drwx-----T   2 www    www         512 Oct  4 12:16 tmp
drwxr-xr-x   3 root   daemon      512 Oct  4 12:15 usr
drwxr-xr-x  28 www    www        1024 May  8 22:24 vaux
-rw-r--r--   1 root   wheel   8565154 Apr  3  2018 wordpress.tgz

guest2# ls -la
/var/www/htdocs/

total 20
drwxr-xr-x   3 www    www    512 Oct  5 10:59 .
drwxrwx---  24 build  wobj  1024 Oct  4 13:04 ..
drwxr-xr-x   2 www    www    512 Oct  2 13:13 bgplg
-rw-r--r--   1 www    www    103 Oct  5 10:03 index.html
-rw-r--r--   1 root   www    103 Oct  5 10:59 test.htm


I deleted a small number of files from /var/www for reasons of privacy.
Most were shell scripts.

regards

Andrew

On Sat, 6 Oct 2018 at 12:18, Sebastian Benoit <[email protected]> wrote:

> Andrew Grillet([email protected]) on 2018.10.05 14:04:32 +0100:
> > >Synopsis:     httpd will not work if /var/www is a mount-point
> > >Category:
> > >Environment:
> >         System      : OpenBSD 6.3
> >         Details     : OpenBSD 6.3 (GENERIC.MP) #486: Sat Mar 24 22:37:16
> > MDT 2018
> >                          [email protected]:
> > /usr/src/sys/arch/sparc64/compile/GENERIC.MP
> >
> >         Architecture: OpenBSD.sparc64
> >         Machine     : sparc64
> > >Description:
> >         if /var/www is a separate partition mounted there, all requests
> to
> >         to access http://127.0.0.1 are refused with error 403 forbidden.
> > >How-To-Repeat:
> >         /var/www/htdocs/index.html will work fine.
> >
> >         mount /dev/sd0i /var/www
> >         put copies of the same /htdocs/index.html in it, and then use the
> > same browser
> >         to access http://127.0.0.1 - it is refused with error 403
> forbidden.
>
> Please show the output of
>
>   mount
>
>   ls -la /var/www
>
>   ls -la /var/www/htdocs
>
> /Benno
>


-- 

Andrew Grillet

<http://www.sclog.org>

Reply via email to