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

Re: HTML files rendered by Apache as text/plain

From: Dale R. Worley <dworley_at_pingtel.com>
Date: 2005-09-02 21:29:49 CEST

On Fri, 2005-09-02 at 15:11 -0400, Chris Shenton wrote:
> I was able to get SVN to inform Apache to supply the correct mime-type
> text/html by setting the svn:mime-type property for each of these
> files. Apache then passes the right mime-type header and the browser
> renders it properly. Is this the right way to do this?

Yes -- Since Subversion thinks it knows the actual MIME type of the
file, Apache does not have to guess based on the extension.

> Is there a way to tell SVN that all .html files should have mime-type
> text/html instead of text/plain?

Strictly speaking, no. But you can set the Subversion preferences in
the users' accounts so that when svn adds a file with extension .html,
svn will also do an "svn propset svn:mime-type" on the file.

You can write a script that will do the propset on every .html file in a
WC, and then check it in.

Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 2 21:31:48 2005

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.