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

Re: FHS and /var/www



This one time, at band camp, Carl Fürstenberg said:
> 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.
> 
> So you "vote" for an exemption from FSH in this case, as per 9.1.1?

http://www.debian.org/doc/packaging-manuals/fhs/fhs-2.3.html#SRVDATAFORSERVICESPROVIDEDBYSYSTEM

"Therefore, no program should rely on a specific subdirectory structure
of /srv existing or data necessarily being stored in /srv.

[...]

Distributions must take care not to remove locally placed files in these
directories without administrator permission."


I don't think there's any excemption needed.  The FHS already makes it
essentially impossible for distributors to place anything under /srv.
Not putting anything there means it's a fairly daft idea to have a
webroot pointing there and expect anything to work out of the box.
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sgran@debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature


Reply to: