Page 1 of 1

Add site without domain for development purposes

Posted: Fri Jun 22, 2018 2:26 am
by madbalmung
We want to add a new website in our cloud VPS through our VestaCP panel.

The problem is that this new website will be dedicated only for testing projects in a sandbox environment so... we won't pay for any domain name server because we just want to access to this site in private.

How should we configure this new site through VestaCP? What domain name should we input when prompted? And... how do we access to the website in our browsers?

Thanks in advance!

Re: Add site without domain for development purposes

Posted: Fri Jun 22, 2018 5:07 am
by ScIT
You can override any domain requests with your hosts file (https://en.wikipedia.org/wiki/Hosts_(file)).

You have to setup a vaild domain name, for example test123.com, then point it to your server inside the host file.

Re: Add site without domain for development purposes

Posted: Fri Jun 22, 2018 5:20 am
by madbalmung
Ok so after doing that we will be able to access the test site through the IP of the server?

We currently have only one IP added in VestaCP and its the one that the server company gave us. When you access it through the browser it redirects to the domain of one of the websites we have online for a customer.

Should we add a new IP address for the test site?

Re: Add site without domain for development purposes

Posted: Fri Jun 22, 2018 5:31 am
by ScIT
No, it will work without additional ip.

Re: Add site without domain for development purposes

Posted: Fri Jun 22, 2018 9:42 am
by inco
use a different port, or use a free domain like .tk

Re: Add site without domain for development purposes

Posted: Fri Jun 22, 2018 9:45 am
by ScIT
inco wrote:
Fri Jun 22, 2018 9:42 am
use a different port, or use a free domain like .tk
why he should use a different port?