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 <http://qun.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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx