>>>>> "Ryan" == Ryan Schmidt <subversion-2005@ryandesign.com> writes:
 Ryan> On Sep 27, 2005, at 17:55, Paul Koning wrote:
 >> One of the parts of my Subversion repository is a subtree that
 >> holds our internal website content.  So of course the latest
 >> content is visible via a path that looks like
 >> http://snv.ourstuff.com/repos/oursvn/trunk/intranet/index.html
 >> 
 >> We already have a virtual host setup, so people are used to
 >> http://ourintranet.com/
 >> 
 >> to get to that same material.  Right now it's done in CVS, and the
 >> "live" site is actually a copy (working directory), checked out
 >> manually or periodically, so it isn't convenient and "live".
 >> 
 >> I would like to have http://ourintranet.com/ end up at the
 >> repository, i.e., it's an alias for
 >> http://snv.ourstuff.com/repos/oursvn/trunk/intranet/.  How would I
 >> do that?  Rewrite rules?  Alias?
 Ryan> RewriteRule rewrites from URLs to URLs, so that's closer,
 Ryan> except that when crossing hostname boundaries, as you are, it
 Ryan> actually has to issue a Location header to redirect the
 Ryan> client. Someone would type in http://ourintranet.com/,
 Ryan> mod_rewrite would issue a redirect, and the browser's address
 Ryan> bar would now show http://snv.ourstuff.com/repos/
 Ryan> oursvn/trunk/intranet/ which is probably not what you want.
Right, I'm trying to make this invisible.
A thought comes to mind.  I assume I can have more one <Location>
element in the Apache conf, pointing to the *same* repository.   Given
that, I can put one into the virtual host section for the intranet
hostname, and use Rewrite to map top level names to that lower level
URL within the same virtual host.  I would include access controls to
make this view read-only (not that it really matters I think).
     paul
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 27 19:08:51 2005