Hello everyone, I have a suggestion regarding the Document Root setting, which is reflected in /etc/nginx/sites-available/{domain.vhost}. It would be very helpful if the Document Root field in the Sites form: <div class="form-group"> <label for="document_root" class="col-sm-3 control-label" readonly="">Document Root</label> <div class="col-sm-9"> <div class="checkbox">/var/www/clients/client0/web8</div> </div> </div> could be changed to an actual editable input field instead of being displayed as read-only text. This would make it much easier to customize the document root when needed, without having to manually edit the generated virtual host configuration.
You can customize the docroot using the Apache or Nginx directives field on the Options tab. Do not manually edit the vhost config file, all manual changes will get removed from the config when you edit the site.
You should never ever manually customize virtual host configurations! It will be undone with every change you make within ispc. If an application forces you to have a different document root than the default web folder you should use the "##subroot <subfolder> ##" within ispc. When the application is outside of the website folders (for example in /usr/share) than you create a symlink to that folder in the web folder and use it as subroot folder in the config.
Thank you very much for your reply, Till. I was manually editing and testing the Nginx configuration before reloading it. I thought that since the configuration was already defined in the vhost, it wouldn't accept another one overriding it. It worked perfectly here. Thanks!
Thank you for the detailed explanation! I really appreciate the information. I'll follow that approach. Thanks again!