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

Where to place images?



This is sent to both -policy and -mentors, as it's both a proposal and
a request for clarification/help.  Please Cc me as I'm only subscribed
to -mentors.

I am in the process of fixing Mailman, which I've just adopted.  There
is this bug, #61761 (http://bugs.debian.org/61761 ), where the
submitter complains that the mailman logo is broken by default (when
not accessing from localhost).  This is because the images are in
http://localhost/doc/mailman/images/, which is only accessible from
localhost.  The submitter proposes that they should be put in,
/var/www/mailman-images or something like that.  

Policy has something to say about this, 12.5:

: Web Document Root 
: 
: Web Applications should try to avoid storing files in the Web
: Document Root. Instead they should use the /usr/share/doc/<package>
: directory for documents and register the Web Application via the
: menu package. If access to the web-root is unavoidable then use
: /var/www as the Document Root. This might be just a symbolic link to
: the location where the sysadmin has put the real document root.

However, I'd like to put images in something like
/usr/share/web-images, since I _might_ end up cluttering around and
overwriting files which I shouldn't, by placing the images in
/var/www/mailman-images.  Also, it looks messy, IMHO.

So what I propose is that we create a new directory /usr/share/images
(or something like that), which is available via the web as
http://server/images/.  Packages create sub-directories, so that
Mailman will have /usr/share/images/mailman/logo.jpg which will be
referred to as http://server/images/mailman/logo.jpg .

-- 

Tollef Fog Heen
Unix _IS_ user friendly... It's just selective about who its friends are.



Reply to: