By itifagAdmin
I just want to disable my website for a couple of days.
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!
You could use service nginx stop or service apache2 stop to turn off your web server.
As @gparent said, the easiest way is to just shut down your web server. Now if you need to access your site while working on it but don’t want anyone else to I sometimes find it handy to point your DNS record elsewhere and set up an entry in the hosts file on my local computer so the domain works for me but nobody else. The hosts file can be found in /etc/hosts on Linux and Mac and in C:\Windows\system32\drivers\etc on Windows. The format is just the domain name and an IP address in the order shown in the file. Just make sure to delete the entry when you’re ready to go live or you may end up running into confusing results trying to troubleshoot a problem in the future.
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.