rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: timteka on August 18, 2009, 09:40:48 AM

Title: Host synonym
Post by: timteka on August 18, 2009, 09:40:48 AM
Hi, guys,
How can i set one (several) synonyms for my host in HFS? i'd like to add several -A records in my domains to point to the server ip, but i don't know how to add aliases to my web-server so that HFS would respond on www.domain1.com, www.domain2.com, www.domain3.com, etc. ? (i don't mean different virtual hosts inside HFS, but just synonyms of the main address)
Title: Re: Host synonym
Post by: bacter on August 18, 2009, 01:59:12 PM
There s no problem having different domains pointing to the ip-address of your hfs-server.

What you ask for has nothing to do with hfs, you only need to register (payed or free) more domains. Dyndns free domains for example allow having different free domains, so with one update all is done. If you register your domains on different sites, perhaps you need to update each one, what will be no problem if you have a static ip. If you have dynamic ip, perhabs you need to have different updaters working.
Title: Re: Host synonym
Post by: rejetto on August 24, 2009, 11:07:37 AM
HFS doesn't care about the domain, so you don't need to change anything in HFS.
Title: Re: Host synonym
Post by: timteka on August 27, 2009, 07:51:11 AM
Ok, now i have several dns -A records pointing to my HFS host, e.g. www.domain1.com , www.domain2.com, etc...
but here's next problem.
when user opens www.domain1.com he gets www.domain1.com as site title, but another user, which opens www.domain2.com also gets www.domain1.com title. how can i change this behavior so that hfs could insert proper page title?
Title: Re: Host synonym
Post by: timteka on August 27, 2009, 08:03:51 AM
Oops! Got it. Just added the following line into the site template:
Code: [Select]
<title>%host%</title>
Thanx to this valuable post: http://www.rejetto.com/forum/index.php?topic=1939.0 (http://www.rejetto.com/forum/index.php?topic=1939.0)