RE: SVN files content Type
From: D, Dinoj <Dinoj.D_at_Honeywell.com>
Date: Thu, 4 Aug 2011 14:41:16 +0530
Hi,
I have got some information that we can overwrite the header information
Thanks & Regards,
On May 16, 2011, at 00:42, D, Dinoj wrote:
> Hi Daniel/Ryan
That's correct.
> Here my requirement
There's no way to configure Subversion to do that.
As I already suggested, consider having a server-side post-commit hook
As a concrete example:
Consider you have an HTML page in a project in a repository accessible
http://www.example.com/svn/project1/trunk/folder/index.html
You haven't been using svn:mime-type, so users who view this URL in a
Imagine your repository is on the server at /var/svn, and that you have
<VirtualHost *:80>
So, check out a working copy of this project's trunk somewhere inside
mkdir -p /var/www/test
Now you can access that same HTML file from above at:
http://www.example.com/test/project1/folder/index.html
And now it will use the MIME types from the Apache configuration.
Now, you install a post-commit hook script in the repository which
svn up /var/www/test/*
This way, every time anyone commits anything to the repository, the test
Updating "*" will be slow, so you can optimize this further if you like
|
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.