Change nginx web_folder on the UI
In the apache the latest config override the first so i can just use DocumentRoot in the directives and override the first option, but in the nginx this cause an error, so definetly need something else.
I see a field in the web_domain table named 'web_folder' but its emtpy. I altered the table to this field have a default value 'web' and changed all record like this. Then i change in server/plugins-enables/nginx_plugin.inc.php row 371: $web_folder = 'web';
with this: $web_folder = $data['new']['web_folder'];
Then when i save a web site in the nginx config in the end of the document root the /web used what is in the database. For example if i use 'web/public' in the database the nginx conf root line end /web/public not just /web
This is exatly what i need! Now it just need an extra row in thw web UI Site settings page, like Web folder What will be default 'web' but it can be change from there not just editing the database.
It would be helping a lot because lots of site have document root in a subdirectory but have files one level higher too. And the database have the required field already, so only have a few php code modifications. I cant figure out where it stored the web UI code, so i can only come up with this.
Thanks. Peter