Back on topic I am trying to setup lighttpd to be my web fileserver.
The only instructions I can find for setting up WebNFS is this:
NFS function to setup web server Centos
linuxscriptshub.com
It seems rather complete.
NFS Server
Step 1) Not needed. FreeBSD has NFS server included.
Step 2) I used this for my export file:
/files -maproot=root -webnfs -network 192.168.0.0/16
Step 3) Skipped for my own /file path
NFS Client:
Step 1) Client is already installed and running.
Step 2) Skipped for own mount
Step 3) Manually mounted
Step 4) This was helpful for the webserver setup.
root /mnt/web; this was the only setting in lighttppd.conf that I changed.
(To lighttpd's doucment-source-root) and my own path /files
I saw a problem report that index files were a problem with WebNFS.
So I created a default.htm which lighttpd supports.
I have a basic webpage created in my export of /files.
I tested the webserver with its default document root first and it works.
So I am unsuccessful so far.. I have to be close.
There is an option in
export to set index file for WebNFS and I tried that as well.