I do migrate an old server to virtualmin. There was the document_root set to /web.
To make it easy for existing CMS-Systems, I’d like to set the default-value of document_root for virtualmin to /web instead of /public_html.
@Gomez_Adams I’d tried this, but to change the document-root in that way, break the virtualserver. It shows “no virtualhost found”. So I have to go to nginx-vhost-file and set it manually back to previous value.
I found that this only change the root entry in Nginx, but not the php-settings or anything else which have the public_html path. BTW: It also don’t rename the existing public_html nor does it create a new directory named web.
Thanks @Joe for your answer.
I’ve looked there before, but was a bit confused about that its only point to “Apache”:
And down there, where you can change the Document-Root there is a note, MUST Match DocumentRoot above, but I didn’t found any “DocumentRoot” above.
What is meant by this?