rejetto forum

Software => HFS ~ HTTP File Server => router & port problems => Topic started by: talis on February 17, 2009, 07:25:22 PM

Title: Running more than one server
Post by: talis on February 17, 2009, 07:25:22 PM
Hello

Is it possible to run more than one server on single Pc using different dynamic addresses.

I know using with Ip address it is not possible. but if we can change dynamic addresses than is their any way to run two severs at the same time

Regards Talis
Since 1986
Title: Re: Running more than one server
Post by: bacter on February 17, 2009, 08:28:21 PM
you can run more than one server using different ports. Even if you have more than one network-cards and conections, you can use different ip's.

But if you only want to appear with two different sites like videofreaks.homeftp.org and myhome.selfip.net,
both pointing to the same ip,you can do it with one server with the help of macros: depending on the 'host' in the header, you can use one or another template (or partial templates)
Quote
{.set|site|0.} {.comment|default for lan adresses an localhost.}
{.if |{.is substring|86.240.15.nnn|{.header|host.}.}| {.set|site|1.}.}
{.if |{.is substring|myhome.selfip|{.header|host.}.}| {.set|site|2.}.}
{.if |{.is substring|videofreaks.homeftp.org|{.header|host.}.}| {.set|site|3.}.}
{.switch|{.^site.}|,|
      1,2|{:{.load|homesite.tpl.}:}|
      0,3|{:{.load|videosite.tpl.}:}
      .}
with this system you can host 'diferent sites' on the same ip, even with a special site for local network. For example dyndns allows you to group up to five domains to achieve this.