Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-10-01 10:48:24


Guillaume Melquiond <gmelquio_at_[hidden]> writes:

> On Wed, 1 Oct 2003, Beman Dawes wrote:
>
>> In getting ready to switch the Boost web site hosting to SourceForge,
>> there is an Apache configuration file (.htaccess) in
>> /home/groups/b/bo/boost/htdocs that has some rewrite rules that look to
>> me to need changing (see below).
>>
>> My knowledge of Apache is next to nil, but it looks like these should be
>> removed. Is that correct? Can the entire .htaccess file just be removed?
>>
>> --Beman
>>
>> RewriteEngine on
>>
>> RewriteRule ^(.+)\.cpp$
>> http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/boost/boost/$1.cpp?rev=HEAD&content-type=text/vnd.viewcvs-markup
>> [R,L]
>
> I think this previous line should be kept. It allows the documentation
> which directly links to an example file in a Boost local installation to
> work on the website. I'm not sure that my sentence makes sense so I will
> give an exemple.
>
> Let's say you have a file <boost>/libs/mylib/example.cpp and a document
> that has an hyperlink to this file. The documentation would not work
> anymore on the website since this file doesn't exist (only the
> documentation is on the website). However, thanks to the rewriting, the
> server will send the cvs file which does exist.

Well, this is a nice idea, but the CVS link points at the HEAD. I
guess if we had it point at the right revision (Version_1_31_0 or
whatever) we could make it work. If I understand the rule correctly,
it saves some space in the web area by re-routing file references to
the CVS, but I'm not sure it's worth the trouble.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk