Am 07.11.21 05:58 schrieb [email protected]:
> Hello List:
>
> Could somebody please tell me what is wrong in my httpd.conf?
> historia is a ln -s to dokuwiki.
>
> (...)
While you didn't say what's not working like you expected we can only
guess...
I can say that most of the problems I see when people have problems
to setup httpd(8) are more or less concerned to to the chroot.
To debug these kinds of problems you can set the chroot(2) directory in
httpd.conf temporarily to / and see if it works like expected. Then
you will know that a misunderstanding of chroot is the problem.
Then you can reset chroot in httpd.conf and modify your setup so that it
will work.
But you should make sure that your httpd is not accessible from internet
while you tinker with yout httpd.conf.
As a shot in the dark I would guess that your symlink points to a
directory that is not inside chroot, maybe something like
kb -> /home/user/dokuwiki
Here is mine:
server "xxx" {
listen on lo port $httpd_port
# Set max upload size to 513M (in bytes)
connection max request body 537919488
# deny access to the specified files
location "/wiki/bin/*" { block }
location "/wiki/conf/*" { block }
location "/wiki/data/*" { block }
location "/wiki/inc/*" { block }
location "/wiki/*/.ht*" { block }
location "/wiki/README" { block }
location "/wiki/VERSION" { block }
location "/wiki/COPYING" { block }
location "/" {
block return 301 "/wiki/doku.php"
}
location "*.php" {
fastcgi socket "/run/php-fpm.sock"
}
}