Almost every example I've seen of people configuring NGINX (mostly with Docker) changes the location of files and folders by default. Can anyone think of a legitimate reason for this other than personal preference (for example: moving to an industry-recognized location for such items)?
Two of the examples of changes that I see are ...
1. HTML Location (Root)
HTML root is replaced by ...
/use/share/nginx/html/
... to ...
RUN mkdir /srv/www COPY static-content /srv/www
2. Location of magazines
Shared log locations replaced by ...
/var/log/nginx/ /var/log/nginx/error.log /var/log/nginx/access.log
... to ...
RUN mkdir /etc/nginx/logs \ && touch /etc/nginx/logs/static.log \ && touch /etc/nginx/logs/error.log \ && touch /etc/nginx/logs/access.log
I'm certainly not an expert on etiher Docker or the Linux file system. I'm just wondering if there is any benefit to this ... again, apart from personal preferences.
source share