subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Shahaf <...@daniel.shahaf.name>
Subject Re: SVN files content Type
Date Tue, 10 May 2011 09:47:08 GMT
Ryan Schmidt wrote on Tue, May 10, 2011 at 02:41:25 -0500:
> 
> On May 10, 2011, at 02:24, D, Dinoj wrote:
> 
> > 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? 
> 
> No. Set the svn:mime-type property to the correct value on these files.
> 

If nothing else, it ought to be technically possible to throw an HTTP
proxy that detects file extensions on GET requests to the mod_dav_svn
-controlled location and rewrites the Content-Type for those.

So, I'd expect there to be a way to configure httpd to bypass
mod_dav_svn's reported MIME types.

> 
> 

Mime
View raw message