Wednesday, June 15, 2016

networking - Multiple Websites on Multiple Servers behind One Public IP

I’m currently working on a project to bring two of our hosted servers (one email, one web) in-house to run alongside our other web server. Hosting one web server is fairly straightforward, but I need help with how I can divert the traffic to the correct server once it reaches our network.



I’ve read that a proxy server will do this. I’ll be using IIS 7.5 with Application Request Routing and URL Rewrite. I have been trying different methods but I haven’t had any success so I must be missing something.



Would I use URL Rewrite to change the external web address to in internal IP address for the correct server, and then a different port for each individual website on that server? Or is it possible to say the URL of example.com goes to this internal IP, and the URL of company.com goes to this IP?






The two external servers are running Plesk 10 and 11. They host multiple websites and the emails related to those websites. Two examples:-
example.com – info@example.com
company.com – info@company.com



We currently host one web server in-house at IP 192.168.1.5 running IIS 6. This server contains the sub-domain websites for company.com:-
one.company.com
two.company.com



Our router forwards incoming traffic on port 80 to 192.168.1.5






We will have the router forward incoming traffic on port 80 to IP.6
The server at IP.6 will be running IIS 7.5 with Application Request Routing and URL Rewrite. I want this server to direct the traffic to either one of the following servers.



A server at IP.5 to replace our current internal web server will be running IIS 8 and hosting the sub-domain websites for company.com:-
one.company.com
two.company.com



A server at IP.11 to replace our current external web server will be running Plesk 12 hosting many websites including:-
example.com
company.com



As I mentioned in the brief, we will be transferring our email server as well. This will be located at IP.10 running Plesk 12. Am I correct that I will also need the router to forward incoming traffic on ports 25 and 143 to IP.10? This server will be hosting the webmail websites:-
mail.example.com
mail.company.com

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...