By inboundRaj
I am migrating my site from one hosting to another. I have imported the site and data, now i just want to check if my site is working before I add the nameservers to the hosting. I am using Vestacp as control panel and nginx as a server. I am also using more than one domains on single ip address. So I cannot use ip address to access the website. I could have used temporary urls if it would have been the case of apache but its not so, please can anyone help. Thank you in advance.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Windows: Browse to C:\Windows\System32\Drivers\etc and open the hosts file. Mac: Open Terminal -> Type: su (login with your account) -> Type: nano /private/etc/hosts
On both systems add the follow line: serveripadres www.domain.com
Example: 170.149.172.130 www.domain.com
Windows flush dns: open cmd -> type: ipconfig /flushdns Mac (sierra) flush dns: Open Terminal -> Type: sudo killall -HUP mDNSResponder -> Confirm with password
Done!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.