Fork Copy cd /etc/nginx/site-enabled/ sudo cp default . sudo nano . #Edit: root, server name => Ctrl + O, Ctrl + X sudo nano /etc/hosts #add new line: 127.0.0.1 . sudo service nginx restart