Comment 2 for bug 616685

Revision history for this message
أحمد المحمودي (Ahmed El-Mahmoudy) (aelmahmoudy) wrote :

lintian gives those errors:

E: nginx: dir-or-file-in-var-www var/www/nginx-default/
N:
N: Debian packages should not install files under /var/www. This is not one
N: of the /var directories in the File Hierarchy Standard and is under the
N: control of the local administrator. Packages should not assume that it
N: is the document root for a web server; it is very common for users to
N: change the default document root and packages should not assume that
N: users will keep any particular setting.
N:
N: Packages that want to make files available via an installed web server
N: should instead put instructions for the local administrator in a
N: README.Debian file and ideally include configuration fragments for
N: common web servers such as Apache.
N:
N: As an exception, packages are permitted to create the /var/www directory
N: due to its past history as the default document root, but should at most
N: copy over a default file in postinst for a new install. In this case,
N: please add a Lintian override.
N:
N: Refer to Filesystem Hierarchy Standard (The /var Hierarchy) for details.
N:
N: Severity: serious, Certainty: possible
N:
E: nginx: dir-or-file-in-var-www var/www/nginx-default/50x.html
E: nginx: dir-or-file-in-var-www var/www/nginx-default/index.html