We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Access websites via IP Topic is solved
Access websites via IP
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.
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
I do it using hosts.
Then access website using your domain.
Code: Select all
serverip yourdomain
Re: Access websites via IP
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
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
-
- Posts: 50
- Joined: Mon Oct 27, 2014 10:04 am
Re: Access websites via IP
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
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
This one works!missionaryman wrote: ↑Sun Aug 02, 2015 7:42 amIs this any good?
https://vestacp.com/docs/#how-to-config ... ew-domains
Thank you, missionaryman, so much !!!
Re: Sites Acessar via IP.
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/
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/