[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to use SubVersion as a web-site

From: Edmund Horner <edmund_at_chrysophylax.cjb.net>
Date: 2003-05-17 14:58:03 CEST

> That would be great, I thought, to use this feature to build
> versioned web-sites.

This sounds a *bit* like a Wiki (see http://subwiki.tigris.org/).

> The only problem with that is that it won't display
> index.htm or any such file instead of the list of files in the directory. I
> wonder how hard would it be to include such a facility in the apache plugin.

Mapping from ".../" -> ".../index.html" (if it exists) is done by
mod_dir. I don't think there is a way for mod_dir to check if there is
an index.html file in the repository and map to it, so you would have to
copy some of the code out of mod_dir.c and put it in mod_dav_svn.c.

A less C-intensive thing you could do is use mod_rewrite to translate to
do ".../" -> ".../index.html" just using directives. I'm pretty sure
this is possible (disclaimer: I have never successfully used
mod_rewrite), but it does assume that all directories will have
appropriate index.html files.

Just some ideas for you,

Edmund.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat May 17 14:58:50 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.