NetTalk Central

Author Topic: More web servers on the same computer  (Read 2858 times)

Matthew

  • Full Member
  • ***
  • Posts: 137
    • View Profile
    • Email
More web servers on the same computer
« on: January 03, 2012, 05:50:54 AM »
Hello.

When I run more than one web servers on the same computer, then it has sometimes problem with correct redirection to their website.

This is my situation:
- I have two different website
- Each website has 2 way of access (http - public and https - private), so I have 4 web servers (2 for http and 2 for https)
- I run it on one computer
- The computer has two network cards, so it has two ip address (two domains) for example:
  - www.FirstWebSite.com - for first web servers (http and https)
  - www.SecondWebSite.com - for second web servers (http and https)

My problem is:
When I run first web servers (http and https) everything works fine. I can open www.FirstWebSite.com on port 80. Then, when I run second web servers (http and https) and try to open www.SecondWebSite.com on port 80 it happens that corresponds first web server (http) instead of the second web server (http) and open www.FirstWebSite.com while in the address bar is www.SecondWebSite.com. Then I need to run these servers in reverse order, that everything worked well. But after that when I shut down second web server it start again redirect to www.FirstWebSite.com instead of error page.

The first web servers are running as a services.
The second web servers are normal exe application.

1. Why web servers overlap?
2. What can I do to work with these web servers on the same computer without such problem?

If need any further information please tell.
I wonder why this is happening.

Regards,
Matthew

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: More web servers on the same computer
« Reply #1 on: January 03, 2012, 06:05:25 AM »
In both apps;

WebServer procedure, Advanced Tab,
Are you setting the "Bind to IP address"?

It sounds to me like it's correct in the one app, but not the other.

cheers
Bruce

Matthew

  • Full Member
  • ***
  • Posts: 137
    • View Profile
    • Email
Re: More web servers on the same computer
« Reply #2 on: January 04, 2012, 11:22:24 PM »
Thank You Bruce. You are amazing.
Such a simple solution. I had to forget about it.

"Bind to IP address" setting in first web server was empty.
Now everything works perfect.

Ragards,
Matthew