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

Re: svn update in post-commit hook

From: Rob Brandt <bronto_at_csd-bes.net>
Date: 2005-11-08 23:19:49 CET

Cool: set .html files to mime-type: text/html and my simple html site is
viewable! :)
Uncool: Doesn't work for php. :( I even tried mime-type:
application/x-httpd-php, but that makes the browser want to download the file.

I searched this mailing list for solutions, and while many others have looked
for an answer none have found one.

I did find a reference to this though, and it looks like I can use it to kill
two birds with one stone:

http://nshb.net/node/73

Rob

Quoting Paul Koning <pkoning@equallogic.com>:

>>>>>> "Rob" == Rob Brandt <bronto@csd-bes.net> writes:
>
> Rob> Ok.... I've used regular svn URLs to view the most recent
> Rob> files. I was already configured for that. My files are php;
> Rob> they are displayed as text rather than interpretted as php. In
> Rob> fact, even my plain html files are displayed as text. Are we
> Rob> talking about different things here?
>
> Rob> I'm using v.1.1 BTW.
>
> I don't know if V1.1 makes any difference; I'm using V1.2.3.
>
> The answer is that you have to set the svn:mime-type attribute. I use
> an auto-props section in the svn client config file for that, and I
> also set up mime types in the conversion from CVS.
>
> With that done, you'll get the expected behavior out of Apache (i.e.,
> web content acts as what you'd expect it to, not as plain text).
>
> paul
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 8 23:22:04 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.