[silva-dev] https://viewvc.infrae.com/ password protected

Andy Altepeter aaltepet at altepeter.net
Wed May 27 14:19:45 CEST 2009


> > The svn.infrae.com is not password protected and does get indexed.
> > Sometimes we use the Goggle "site: svn.infrae.com" command which is
> > effective.
> >
> > Are there lots of people out there using viewvc who don't have svn
> > access?
>
> i use https://viewvc.infrae.com/ almost on a daily bases: i can read
> the developers' commments, i see what's been worked on and what not, i
> can easily compare versions, i can look at the code itself, etc. and
> this from any computer without having to download anything or not
> having to install anything locally expect a browser. most of these
> feature are not available on svn.infrae.com and a browser. i really
> would miss this feature if you decide to have it closed.

I agree.  Aside from myself, two other developers here regularly use 
viewvc.infrae.com.  Like Marc, I also use the site almost daily.

I think there should be some way to setup an Alias in apache for 
viewvc.infrae.com/robots.txt, and serve it up from somewhere else on the 
filesystem.  The domain certainly has a root, although the root just 
redirects to /svn.  But if you're using apache, you should be able to not 
send requests for /robots.txt to viewvc, and instead serve up the actual 
file.  Using 'Alias' is the first thing I would try, followed by 
rewriterules. 

Or perhaps, as Marc suggested, place robots.txt in the documentroot, and then 
use a rewriterule to pass through to the next handler.

In face, now that I look at our viewvc configuration, I see we have robots.txt 
working.  Here's the relevant excerpt from our apache config:

 DocumentRoot /export/viewvc/nocontent

 RewriteEngine On
 RewriteRule /robots.txt - [PT,L]
 RewriteCond %{REQUEST_URI} !/viewvc
 RewriteRule .* /viewvc [R,L]
 ScriptAlias /viewvc /export/viewvc/bin/cgi/viewvc.cgi

And robots.txt lives in /export/viewvc/nocontent/robots.txt

Cheers,
Andy

>
> regards,
> marc
>
>
> _______________________________________________
> silva-dev mailing list
> silva-dev at lists.infrae.com
> https://lists.infrae.com/mailman/listinfo/silva-dev





More information about the silva-dev mailing list