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

dir-or-file-in-var-www on single-HTML file web "apps" or the like

On Mon, Nov 02, 2009 at 02:04:29PM +0000, Neil McGovern wrote:
> Have a read of
> http://webapps-common.alioth.debian.org/draft/html/ch-httpd.html

Thanks for the pointer, I gave it a go.

I'm looking at some of the dir-or-file-in-var-www bugs reported by
Manoj. A recurrent pattern is that of packages that ship, as their
static content, a single .html file, usually a form for triggering some
CGI app. All of them reported to be buggy store that file as

Reading §5.3 of the above link, I wonder whether the following solution
would be appropriate:

- ship under /etc/apache2/conf.d/ a snippet with an Alias dir mapping
  the package name to a dir containing the static content (a single html
  file, usually)
- add an index.html -> file.html symlink in that dir

For the end user, the change would be from accessing the app as
http://localhost/file.html to accessing it as http://localhost/package/.

Would that be appropriate?

Also, can we do anything better---still remaining FHS-compatible---than
documenting that in a NEWS.Debian entry to ease transition to the new


Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7
zack@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/
Dietro un grande uomo c'è ..|  .  |. Et ne m'en veux pas si je te tutoie
sempre uno zaino ...........| ..: |.... Je dis tu à tous ceux que j'aime

Attachment: signature.asc
Description: Digital signature

Reply to: