File History (Still the MIME type misery)

8 views
Skip to first unread message

Johannes

unread,
Nov 12, 2009, 11:04:38 PM11/12/09
to ReposStyle
Hey,

when I click on the File History link the index.php is not run. i am
just prompted to save the file...

my apache config for php files works fine though.

also i set the mime-type for the file in my svn via:
svn propset svn:mime-type application/x-http-php repos-web/open/log/
index.php

cheers

Staffan

unread,
Nov 14, 2009, 3:29:06 AM11/14/09
to repos...@googlegroups.com

Are you running Repos Style directly from a subversion repository?
That probably explains the problems with repos.xsl mime type in our
last thread. You solved it using ModMimeUsePathInfo but svn propset
would probably have worked too.

Running php from subversion is more tricky because apache has the
concept of handlers, and runs either mod_dav_svn OR mod_php. Xsl is
easier because it can be served using any handler and let the browser
do the transform. With php this is not really supported, but I have a
vague memory of someone reporting to the mailing list something like
this. Have a look through older posts.

/Staffan

Johannes Helmuth

unread,
Nov 14, 2009, 6:19:29 PM11/14/09
to repos...@googlegroups.com
hey man,

i will try to put the style outside of the repository via alias or something

if this fixes the problem, i will reply here.

regarding the philosophy of handlers: i can not follow apaches concept
in this case... why should one not be possible to have different
handlers running?

cheers
johannes

Staffan

unread,
Nov 15, 2009, 12:34:19 PM11/15/09
to repos...@googlegroups.com
On Sun, Nov 15, 2009 at 12:19 AM, Johannes Helmuth
<johannes...@gmx.de> wrote:
>
> hey man,
>
> i will try to put the style outside of the repository via alias or something
>
PHP wants it to be actual files on the file system. Alias to a
directory outside your repository Location might work.

> if this fixes the problem, i will reply here.
>
> regarding the philosophy of handlers: i can not follow apaches concept
> in this case... why should one not be possible to have different
> handlers running?
>
There are amany handlers running, but apache selects one handler
depending on URI using your config. think of it as different backends
for serving content. There's more info here:
http://httpd.apache.org/docs/2.2/handler.html

/Staffan

Johannes

unread,
Nov 15, 2009, 4:21:59 PM11/15/09
to ReposStyle

> PHP wants it to be actual files on the file system. Alias to a
> directory outside your repository Location might work.

fine. this fixed the problem and folder history is now working.

cheers
johannes
Reply all
Reply to author
Forward
0 new messages