What's the NS8 way of webserver serving home to the fqdn?

NethServer Version: ns8
Module: webserver

I just installed webserver. I created a virtual host with an fqdn, not the ns8 fqdn.

I uploaded a simple html page using the sftp gui. It’s under home.

If I browse to the fqdn I get a 403.

If I browse to the fqdn/file.html I get the page, etc I uploaded.

I need the fqdn response to be from home.

I need to enter the fqdn into the browser and get fqdn/file.html.

What is the NS8 way of doing that from the sftp client gui?

Maybe rename file.html into index.html, or index.htm. But @stephdl has probably a better answer!

2 Likes

yes, nginx expects an index.html, else you can check the box : Indexes: List the files inside the webroot folder. use enabled|disabled

2 Likes

I’m not sure what root means in this context, I was afraid it might be the root folder instead of the host user home folder, anyway, not checked. I deleted the virtual host yesterday and recreated it today using the same index file but actually spelled it index instead of fat fingering it as idex.

Couple of things, if you edit a virtual host, it creates another home folder under the home folder and it can’t be deleted.

The webclient editor messes with alt characters, ie; Ö, so if there’re alt characters you can’t use the editor.