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

Re: FHS and /var/www

On Sun, Jul 20, 2008 at 07:32:33PM +0200, Carl Fürstenberg wrote:
> On Sun, Jul 20, 2008 at 16:34, Stephen Gran <sgran@debian.org> wrote:
> > This one time, at band camp, Carl Fürstenberg said:
> >> FHS 2.3 specifies in
> >> http://www.pathname.com/fhs/pub/fhs-2.3.html#SRVDATAFORSERVICESPROVIDEDBYSYSTEM
> >> to use /srv for "Data for services provided by this system", for
> >> example /srv/www for web root.
> >> In the policy, the section
> >> 9.1.1(http://www.debian.org/doc/debian-policy/ch-opersys.html#s9.1.1)
> >> specifies that FHS 2.3 is mandatory, except for some exception, and
> >> the use of /var/www isn't included in that list.
> >>
> >> Should we force all httpd:s to use /srv/www instead of /var/www, or
> >> should an exception to the policy be added? Per
> >> http://wiki.debian.org/Apache2LennyGoals it states that apache2 has
> >> support for /srv/www, but it's still defaulting to /var/www.
> >
> > Please no.  The layout of /srv/ is specifically said to be undetermined,
> > so we can't actually rely on any paths in /srv/.  I think the current
> > setup is fairly good, actually - by default simple site layouts work out
> > of the box, and don't interfere with more complicated setups that are
> > free to use arbitrary hierarchies in /srv.
> >
> > Cheers,
> >
> >
> So you "vote" for an exemption from FSH in this case, as per 9.1.1?
I believe he's claiming that there is no exemption needed, and I agree.

Quoting from the URL you provided:


/srv contains site-specific data which is served by this system. 

To me "site-specific" implies "not installed by the package manager".
I believe it's quite reasonable for apache, CVS, etc. to set up a
default location under /var so long as the local administrator can
configure them to use whichsoever path is preferred according to local

The footnote implying that distributions MAY install files under /srv is
very far from a SHOULD. I think by far the easiest way for Debian to
"take care not to remove locally placed files" is to never but things
there in the first place.

Attachment: signature.asc
Description: Digital signature

Reply to: