While my post may look similar to others, it concerns shared accounts at a web hosting provider all utilizing the same IP address (rather than different IP addresses). Here comes what I would like to ask:
My web hosting provider offers:
The provider offers (in increasing order from less costly to more costly):
1. Shared account (including ssh access to a Linux file/web server) 2. Shared account with dedicated IP address. 3. Virtual Private Server (shared resource which acts like a dedicated server) 4. Dedicated server (this is an entire computer reserved for one person)
I don't understand how option 1. works. I always thought that a domain name ought to have a unique IP assigned to it, but with option 1 we can have several users on the same host, with each user having one or more domain names, and with each domain name serving a separate website. I thought, if different domain names have the same IP, then they must all serve the same website. Somehow it seems Apache can be configured to pair each domain name with a user-specific sub directory, which I guess is how it's done in practice, but I still don't understand how it works. Can someone please illustrate the underlying protocol, from when the URL is typed in a web browser to when the web page is returned to the web browser (without incurring any browser redirections)? Thanks.
I am trying to figure out what I need to be able to use HTTPS to access my site (which is option 1. as described above). I found the following post confirming that to use SSL certificates it is necessary to have a dedicated IP address:
But I am confused. When I access my site through https://mysite.com/ I have no SSL certificate installed, but however, I am redirected to https://mysite.com/~jsonderson , and my provider is not telling me how come the server needs to be configured in this way, saying that I need to purchase a dedicated IP and SSL certificate.
Nevertheless, I would like to emphasize that I am being able to use HTTPS without a dedicated IP on my hosting provider,(although there is a redirection happening, which I do not want). This seems to contradict the contents of the above post, which seem to imply you need to have a dedicated IP address to use HTTPS.
Thanks for the clarifications, I really need them.