I'm pretty sure I added this change to fix a bug where users were complaining about nginx was not installing files /var/www/nginx-default. I think that the reference was lost in the changelogs.
Anyways, I do think it is important to install the files in such directory, due to the document root in the default config of nginx references those path/files. Similar behavior is in lighttpd. Now, as I've just read in Lintian report it says
"As an exception, packages are permitted to create the /var/www directory due to its past history as the default document root, but should at most copy over a default file in postinst for a new install" (this is what lighttpd does).
So I would go for changing the installation of these files to postinst. However, I would like to hear your thoughts about this?
Hi Daniel,
I'm pretty sure I added this change to fix a bug where users were complaining about nginx was not installing files /var/www/ nginx-default. I think that the reference was lost in the changelogs.
Anyways, I do think it is important to install the files in such directory, due to the document root in the default config of nginx references those path/files. Similar behavior is in lighttpd. Now, as I've just read in Lintian report it says
"As an exception, packages are permitted to create the /var/www directory due to its past history as the default document root, but should at most copy over a default file in postinst for a new install" (this is what lighttpd does).
So I would go for changing the installation of these files to postinst. However, I would like to hear your thoughts about this?
Thanks.