Page 1 of 1

Access websites via IP

Posted: Sat Aug 01, 2015 10:37 pm
by mdloring
I'm in the process of moving all of my web sites to a new hosting platform (with Vesta), but need to test each of the sites before updating the domain DNS.

How can I access my web sites via IP? Going to my IP takes me to the default.domain, so how can I access any of my other sites?

I've tried multiple versions of "http://server-ip-address/~sitefolder" but I can't seem to figure out the correct URL.

Is this possible? I've also tried creating an alias for the domain in Vesta, but using the IP isn't a valid domain.

Re: Access websites via IP

Posted: Sat Aug 01, 2015 11:17 pm
by abad
I do it using hosts.

Code: Select all

serverip yourdomain
Then access website using your domain.

Re: Access websites via IP

Posted: Sun Aug 02, 2015 4:10 am
by mdloring
The problem is I'm hosting multiple domains on my server.
I can access my "default" domain via IP, but I can't access any of the other ones.

example:
/home/admin/web/public_html -- points to my IP, but how would I access /home/mloring/web/public_html

Re: Access websites via IP

Posted: Sun Aug 02, 2015 7:42 am
by missionaryman

Re: Access websites via IP

Posted: Sun Aug 02, 2015 8:28 pm
by skurudo
Another solution:
You can add one real domain and then use your virtal domain as many as you wish.

add realdomain.com
and other domains will be virtualdomain-com.realdomain.com

Re: Access websites via IP

Posted: Mon Apr 29, 2019 7:50 am
by lotnomore
missionaryman wrote:
Sun Aug 02, 2015 7:42 am
Is this any good?

https://vestacp.com/docs/#how-to-config ... ew-domains
This one works!

Thank you, missionaryman, so much !!!

Re: Sites Acessar via IP.

Posted: Tue Apr 30, 2019 12:40 pm
by dsystem
I have an easier way to test before publishing the new domain

I simply add the IP and domain to the hosts file of the local operating system.


Example:
-> In Windows 10
Add this line to C:\Windows\System32\drivers\etc\hosts
192.168.3.57 bbc.com

After adding this line and saving the file, simply access the site with your browser http://bbc.com

Reading on this subject -> https://tecnoblog.net/199539/editar-arq ... s-windows/