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

Re: HTML pages in subversion

From: John Locke <mail_at_freelock.com>
Date: 2003-04-23 19:26:31 CEST

On Wed, 2003-04-23 at 05:46, Garrett Rooney wrote:
> On Wednesday, April 23, 2003, at 02:36 AM, Elias Sinderson wrote:
>
> > Hi,
> >
> > I've looked in the available documentation and haven't been able to
> > sort this one...
> >
> > When I browse to a HTML file in my repository (hosted with Apache) I
> > get the raw HTML in my browser window as opposed to nice, pretty, web
> > pages. Any suggestions?
>
> you need to set the svn:mime-type property on the file to text/html.
>
> something like:
>
> $ svn pset svn:mime-type text/html my-html-file.html
>

Here's another suggestion: create an alternate URL that loads through
the normal web server. e.g.

http://yourserver.com/svn/repos1/html/sampledir/samplefile.htm -> loads
through svn, shows the source file.

http://yourserver.com/sampledir/samplefile.htm -> loads through a normal
web server process.

Then you can on the server side create a symbolic link to "sampledir" in
your root web directory, or set up a <Location> block in httpd.conf.

--
Hi, guys,
This is my first post to the list. I just set up Subversion last week,
and I must say I like it very much. Can't wait to see the feature set
get more developed, and adopted by more client interfaces. Here's a
question of my own:
Can you retrieve a particular (previous) version of a file stored in an
SVN repository using mod_dav_svn, either through a generic webDAV or
HTTP client? I'm wondering if you can grab an earlier version of a file
without installing a proper SVN client, just by using a modified URL.
Cheers,
-- 
John Locke
http://freelock.com
Recently published: "An inexpensive e-mail server setup"
http://www.techrepublic.com/article_guest.jhtml?id=r00620030325gcn01.htm
Play sports? Check in at http://teamcheckin.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 23 19:27:14 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.