rejetto forum

Running more than one server

talis · 2 · 5285

0 Members and 1 Guest are viewing this topic.

Offline talis

  • Occasional poster
  • *
    • Posts: 16
    • View Profile
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


Offline bacter

  • Operator
  • Tireless poster
  • *****
    • Posts: 681
    • View Profile
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.
your computer has no brain - use your own !