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

RE: SVN files content Type

From: D, Dinoj <Dinoj.D_at_Honeywell.com>
Date: Tue, 10 May 2011 12:54:55 +0530

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

</Location>

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

Or
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 [mailto:subversion-2011a_at_ryandesign.com]
Sent: Tuesday, May 10, 2011 12:06 PM
To: D, Dinoj
Cc: users_at_subversion.apache.org
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
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
Received on 2011-05-10 09:26:39 CEST

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

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