[ic] Different Domainnames for one Shop

Sandy Thomson sandy at scotwebshops.com
Fri Oct 8 09:34:36 EDT 2004


Lars Tode wrote:

>Hello list.
>
>I want to configure the interchange catalog to handle different domains. 
>For examplpe we have the domains :
>www.example.com
>www.example.net
>www.example.jp
>www.example.fr
>www.example.de
>
>Normaly you write something like this in your variable.txt
>
>SERVER_NAME www.example.com
>
>The idea is to write the config, that the catalog can handle all domains.
>
>May be a UserTag can be the solution ?
>
>Something like this :
>
>--snip--
>UserTag server_name Routine <<EOF
>	my $server_name	= $Tag->env(
>		{
>			arg	=> 'SERVER_NAME'
>		}	
>	);
>
>	# here some security stuff
>	...
>
>	return $server_name;
>EOF
>--snap--
>
>Thanks in advanced,
>
>Lars
>_______________________________________________
>interchange-users mailing list
>interchange-users at icdevgroup.org
>http://www.icdevgroup.org/mailman/listinfo/interchange-users
>
>  
>

how about in your interchange.cfg:
--
Catalog example /path/to/example www.example.com www.example.net
--

and use [env HTTP_HOST] in your pages?


More information about the interchange-users mailing list