michael_kent123 Posted February 22, 2015 Share Posted February 22, 2015 Here is something I do not understand even though I'm sure there is a simple answer. I SSH to my VPS. This VPS has not had DNS propagation started. I can only access it via an IP address. I upload some files to /var/www/ I then go in the web browser to the VPS IP. I can see the files e.g. index.html. Here is what I do not understand. How does the web browser know the correct content to serve me? Presumably, I am not the only person using that IP address. If I were to have linked the domain name to the IP via DNS propagation, then my domain panel would point to the nameservers of the VPS and I would have entered my domain name in the VPS control panel. Hence, when I request www.domain.com, I am given the correct files as the domain name and IP are linked. But in this case, I just type http://220.127.116.11/index.html. How does the VPS know what to give me? The files are stored on their servers. I do not host anything in my /var/www/ directory. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.