You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Andras Tantos <an...@tantos.homelinux.org> on 2003/05/16 05:09:42 UTC

How to use SubVersion as a web-site

Hi!

I've installed SubVersion on my machine and so far I'm really satisifed with 
it. I've noticed that if I go to my repository with a web browser I can see 
all the files and folders in the repository and can download them with my 
browser. That would be great, I thought, to use this feature to build 
versioned web-sites. 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. 
Also: is it possible to show up a branch of a repository under a different 
directory/virtual server? That would make really easy to maintain a 
'development' and a 'release' version of a web-site. Or maybe all this 
functionality is allready there only I couldn't find it?

Thanks for all the help,
Andras Tantos

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: How to use SubVersion as a web-site

Posted by Edmund Horner <ed...@chrysophylax.cjb.net>.
> 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