Hosting two websites on two separate PCs in same network.
It would be a bit tough to do it. Maybe if you implement some load balancing / reverse proxy solution on one of the servers.
Normally you'd set the A record for your website 1 to your external IP, and then set port forwarding in your router on port 80 (http) and 443 (ssl) to the internal ip of the server (ex 192.168.1.11)
You can set the second website's A record to same IP, but your router will forward anything coming on port 80 or 443 to the first server, not the second.. so your option would be either to set up a sort of reverse proxy / load balancer on first server to redirect any traffic for website 2 to server 2 , or to simply set up website 2 on first server as a separate vhost (easy to do in apache or nginx or whatever) - if needed, you could run a database server or some application / api on second server and have your website(s) hosted on first server access resources of second server.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now