I'm trying to get more experienced with both windows server and linux server.
I set up 2 servers, my first server using windows server and my 2nd server using CentOS
I have extra domains that i never use, so i will use them with these servers.
I am using cloudflare and my ip is 87.xxx.xxx.xxx
So, example:
my first server(windows server)
1stdomain.com dns points to ---> cloudflare dns points to ----> 87.xxx.xxx.xxx
and volia! i can see my website. My 1st server is working
my second server(CentOS server)
2stdomain.com dns points to ---> cloudflare dns points to ----> 87.xxx.xxx.xxx
But it's not working. All i get is "HTTP Error 404. The requested resource is not found."
Is it because both domains are pointed to the same ip? and i didn't specify a port?
How can i specify the domains to point to the same ip but port
1stdomain.com--->cloudflare--->87.xxx.xxx.xxx:80--->
2nddomain.com--->cloudflare--->87.xxx.xxx.xxx:81--->
i forgot to mention internally 1st server is at : 192.168.1.101 and 2nd server is at 192.168.1.102
So should i get the domain to point to
1stdomain.com--->cloudflare--->87.xxx.xxx.xxx--->192.168.1.101:80
2nddomain.com--->cloudflare--->87.xxx.xxx.xxx--->192.168.1.102:80
I'm a little confused. I'm not sure where i have to configure, cloudflare, domain, server? or use ports 80 & 81,
I'm lost,
anyone ran 2 servers from the same ip before?
I set up 2 servers, my first server using windows server and my 2nd server using CentOS
I have extra domains that i never use, so i will use them with these servers.
I am using cloudflare and my ip is 87.xxx.xxx.xxx
So, example:
my first server(windows server)
1stdomain.com dns points to ---> cloudflare dns points to ----> 87.xxx.xxx.xxx
and volia! i can see my website. My 1st server is working
my second server(CentOS server)
2stdomain.com dns points to ---> cloudflare dns points to ----> 87.xxx.xxx.xxx
But it's not working. All i get is "HTTP Error 404. The requested resource is not found."
Is it because both domains are pointed to the same ip? and i didn't specify a port?
How can i specify the domains to point to the same ip but port
1stdomain.com--->cloudflare--->87.xxx.xxx.xxx:80--->
2nddomain.com--->cloudflare--->87.xxx.xxx.xxx:81--->
i forgot to mention internally 1st server is at : 192.168.1.101 and 2nd server is at 192.168.1.102
So should i get the domain to point to
1stdomain.com--->cloudflare--->87.xxx.xxx.xxx--->192.168.1.101:80
2nddomain.com--->cloudflare--->87.xxx.xxx.xxx--->192.168.1.102:80
I'm a little confused. I'm not sure where i have to configure, cloudflare, domain, server? or use ports 80 & 81,
I'm lost,
anyone ran 2 servers from the same ip before?