httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Peelman <npeel...@cfl.rr.com>
Subject Re: [users@httpd] best way to modify a URL
Date Wed, 16 Dec 2009 12:07:38 GMT
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
>

In your virtualhost add the line:

<VirtualHost>
ServerName foo.com
ServerAlias dodo.foo.com
...
...
</VirtualHost>

but you need to ensure that dodo.foo.com is also registered. Usually you 
can do this through the same account as foo.com.


-- 
Norman Registered Linux user #461062 -Have you been to www.apache.org yet?-

---------------------------------------------------------------------
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