[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#491547: web server policy requires /var/www, not in FHS



On Sun, Mar 23, 2014 at 12:43:11PM +0100, Arno Töll wrote:
> Hi,
> 
> On 22.03.2014 18:50, Bill Allombert wrote:
> > Are the other HTTP engines going to also change the default document root to
> > /var/www/html ?
> 
> Yes. I tried to seek consensus with maintainers of other web servers in
> Debian, and I filed a mass bug to track the state of the adoption [1].
> 
> > But practically what are you sugesting ?
> > Add a FHS exception for /var/www/html and change the document root in
> > policy ?
> 
> Yes - either this (where the name "html" is an implementation detail.
> With the reasoning being, that any sub directory of /var/www is needed
> and html is what other distros, e.g. Red Hat use), or allow us to
> use/assume a directory structure in /srv which may have a larger impact
> on the FHS than /var/www.

[[ I think it is possible to use subdirectories of /srv as long as we prompt
the user for the directory structure to use, but that seems totally
unpractical for tthe purpose of the Document Root.
]]

I have made a first minimal draft.
Please comment.

diff --git a/policy.sgml b/policy.sgml
index bf959f1..5661f4b 100644
--- a/policy.sgml
+++ b/policy.sgml
@@ -7043,6 +7043,11 @@ Built-Using: grub2 (= 1.99-9), loadlin (= 1.6e-1)
 		</p>
 	      </item>
 	      <item>
+                <p>
+                  The <file>/var/www</file> directory is additionally allowed. 
+                </p>
+	      </item>
+	      <item>
 		<p>
 		  On GNU/Hurd systems, the following additional
 		  directories are allowed in the root
@@ -9752,7 +9757,7 @@ http://localhost/cgi-bin/.../<var>cgi-bin-name</var>
 		<package>doc-base</package> package.  If access to the
 		web document root is unavoidable then use
 		<example compact="compact">
-/var/www
+/var/www/html
 		</example>
 		as the Document Root.  This might be just a symbolic
 		link to the location where the system administrator

Cheers,
-- 
Bill. <ballombe@debian.org>

Imagine a large red swirl here. 


Reply to: