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

RE: [cobalt-users] Redirecting Aliases



This may double-post.  Slippery fingers hit some key combination or other
too soon.  Apologies in advance.

> 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
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                               They should be.

> modifications do I need in the httpd.conf file to get this working.
>
> As you can see my apache knowledge is somewhat vague.

Thus:


<VirtualHost 10.1.2.3>
	ServerName abc.com
	ServerAlias www.abc.com abc.com
	ServerAdmin abuse@xxxxxxxxxxx
	DocumentRoot /home/sites/site7123/web
	<Directory /home/sites/site7123/web>
		Options None
		AllowOverride None
		Order allow,deny
		Allow from all
	</Directory>
</VitualHost>
<VirtualHost 10.1.2.3>
	ServerName abc1.com
	ServerAlias www.abc1.com abc.com
	ServerAdmin abuse@xxxxxxxxxxx
	DocumentRoot /home/sites/site7123/web/
	RedirectPermanent www.abc.com/Merchant2/merchant.miva
</VirtualHost>
etc.

--
Chris Demain                                     cdemain@xxxxxxxxxxx
Systems Administrator                           (813) 839-7242 x3022
Sago Networks                              <http://www.sagonet.com/>
--
"The world is a very strange carrot, but the farmer is not worried at all"