subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "D, Dinoj" <>
Subject RE: SVN files content Type
Date Tue, 10 May 2011 07:24:55 GMT
Hi Ryan

Thanks for your prompt response. The content type should be worked only
while accessing the files through web browser.The problem here we are
facing is that while accessing the files through web browser the
extensions .docx, .pptx, .xlsx are opening as zip files.  The
configuration for SVN in apache is 

<Location /repo/test>
DAV svn
SVNPath /repo/Test


In which can we point the content to conf/mime.types file using 

TypesConfig conf/mime.types

Or is there any methods like

ModMimeUsePathInfo on

AddType image/gif .gif or if any? 

Thanks & Regards,
Dinoj D
Desk: +91 80 26588360 Extn: 48547
Cell: +91 9916668051

-----Original Message-----
From: Ryan Schmidt [] 
Sent: Tuesday, May 10, 2011 12:06 PM
To: D, Dinoj
Subject: Re: SVN files content Type

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
> 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.

View raw message