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.
Previewing websites before DNS propogation?
-
- Posts: 50
- Joined: Mon Oct 27, 2014 10:04 am
Previewing websites before DNS propogation?
Can I preview websites using VestaCP before my DNS has propogated? Is there a syntax like:
mainsite.com/~secondsite
or like the Plesk variant: secondsite.com.xx-xx-xx-xx.mainsite.com
mainsite.com/~secondsite
or like the Plesk variant: secondsite.com.xx-xx-xx-xx.mainsite.com
Re: Previewing websites before DNS propogation?
Hi!
I think the easiest method is to edit your operating systems host file and add the following lines:
"your.server.ip.address <tab> domain.name" like this: "1.1.1.1 example.com"
This way your OS will not query the DNS servers about the domain, instead use the local host file to determine the IP address of the server.
On Windows 7 (not sure if i remember correctly, i'm not using it anymore):
C:/Windows/System32/drivers/etc/hosts
On Macintosh:
/pricate/etc/hosts
There might be a permission issue when saving the edited hosts file, you can find the solution and the whole process in Google.
I think the easiest method is to edit your operating systems host file and add the following lines:
"your.server.ip.address <tab> domain.name" like this: "1.1.1.1 example.com"
This way your OS will not query the DNS servers about the domain, instead use the local host file to determine the IP address of the server.
On Windows 7 (not sure if i remember correctly, i'm not using it anymore):
C:/Windows/System32/drivers/etc/hosts
On Macintosh:
/pricate/etc/hosts
There might be a permission issue when saving the edited hosts file, you can find the solution and the whole process in Google.
Re: Previewing websites before DNS propogation?
You could just add an alias to their domain with the main site in it like: xxxxxx.mainsite.com. That works for me, however, I have a wildcard setup for subdomain as a record set for my main site so I don't have to add the subdomain each time.