Is there a best practice for the location of the root folder of a webapp?

  • Apache normally uses /var/www or /var/www/html depending on distro and I have usually sticked with its defaults. So when using nginx I've used the same locations as well without giving it much thought.

    Is there a best practice of where the folder should be located or it really doesn't matter?

  • Location matters very little. I would stick to the standards.