httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Schoenborn <scho...@cae.com>
Subject RE: [users@httpd] best way to modify a URL
Date Wed, 16 Dec 2009 21:46:05 GMT
Thanks Justin. I have tried playing around with rules based on what you posted. My findings
are in my reply to Andre, which I hope will be clearer than original, if you would like to
take another stab at it. Regards, 
Oliver



> -----Original Message-----
> From: Justin Pasher [mailto:justinp@newmediagateway.com]
> Sent: December 15, 2009 6:14 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] best way to modify a URL
> 
> Oliver Schoenborn wrote:
> >
> > I have a simple problem: the URL root for a client website we are
> > setting up is http://foo.com/bar/*, but our client wants access to be
> > it via http://dodo.foo.com/*, how would I set
> > this up? I have used mod_proxy in the past for something similar but
> > this doesn’t seem to be applicable here. I think mod_rewrite could
> > handle it but it is rather complicated to learn in short time, if
> > there is a simpler way or an example somewhere a link would be
> > greatly appreciated. Cheers,
> >
> > Oliver
> >
> 
> Could you just create a new VirtualHost container for
> http://dodo.foo.com/ and point the DocumentRoot to whatever file system
> directory corresponds to http://foo.com/bar/ ? That would probably be
> the easiest.
> 
> If not, you can use a RewriteRule to map the traffic. Something like
> this (untested):
> 
> RewriteRule ^/bar/(.*) http://dodo.foo.com/$1 [L]
> 
> 
> --
> Justin Pasher
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message