[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Redirecting Aliases



<mbowman@xxxxxxxxxx> wrote:
> A customer has 5 domains of which only 1 is a live site and 4 are aliases.
> He wants 2 of the domains to point to a specific URL under the 'live'
> domain.
>
> i.e.
>
> www.abc1.com -> www.abc.com/Merchant2/merchant.miva
>
> Given that the 4 aliases are not virtual hosts in their own right, what
> modifications do I need in the httpd.conf file to get this working.

Create each site in the GUI.  Then manually edit the VirtualHost container
for each site and change the DocumentRoot for each site to the server path
of the directory associated with the desired URL path.

So the original might look like:

DocumentRoot /home/sites/site123/web

And the edited may look like:

DocumentRoot /home/sites/site123/web/Merchant2/merchant.miva

Then restart Apache (/etc/rc.d/init.d/httpd restart).  If that behavior
isn't what you had in mind, you may need to work with other Apache
directives.  So if it's not what you want be more specific about the desired
behavior and one of us will help.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/