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

Re: Support for HTTP Redirects? was: Re: https connection without http

From: Sander Striker <striker_at_apache.org>
Date: 2004-03-13 16:22:02 CET

On Sat, 2004-03-13 at 15:53, Marcin Gil wrote:
> Chris Croome wrote:
> >
> > You will need to create a VirtualHost for each domain name, eg:
> >
> > <VirtualHost *:80>
> > ServerName one.example.com
> > Redirect /repo https://one.example.com/repo
> > </VirtualHost *:80>
> >
> > <VirtualHost *:80>
> > ServerName two.example.com
> > Redirect /repo https://two.example.com/repo
> > </VirtualHost *:80>
> >
> This is not a solution, since I have 100+ virtual hosts deployed on my
> server.

You could try some mod_rewrite voodoo (completely untested):

RewriteRule ^/repo(/.*)? https://%{SERVER_NAME}/repo$1 [R=permanent]

Or something to that effect.

> I don't know -- can I put a <Location> inside <VirtualHost>, so that
> this locations is obeyed only at specified virtual host?

Sure.

Sander

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Mar 13 16:22:29 2004

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