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