On May 10, 2011, at 01:31, D, Dinoj wrote:

> Can we make it possible to contact apache content type using any
> modules..Setting the svn:mime-type to all individual files is not a good
> solution

If you want to serve the files directly out of the repository, then you must 
set the svn:mime-type property on each individual file.

You can use auto-props in your config file on each client to make it easy to 
automatically add properties when adding files. There is a script you can run 
to retroactively apply those properties to your existing files in the 
repository too. And you can write a pre-commit hook script to prevent future 
files from being added without their required properties.

But, consider not serving the files directly out of the repository. Instead, 
consider having a working copy of the appropriate subsection of the repository 
checked out on your web server and automatically updated at every commit. This 
will then use your normal Apache settings for mime type etc., and will 
additionally let you use server-side scripting languages like PHP if you want 
to.

http://subversion.apache.org/faq.html#website-auto-update


Reply via email to