From the course: Learning NGINX

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Add files to the root directory

Add files to the root directory - Nginx Tutorial

From the course: Learning NGINX

Add files to the root directory

Now that I have a server configuration in place, let's add some content to the website. I'll start by cloning the exercise files to my server. From the GitHub page for this lesson, I'll select the copy icon for this git clone command so I can use it on the server. I'm connected to my sandbox server as the root user and I'm working from the slash root directory. From here, I'll run the git clone command that I copied from the exercise files. If I clear the screen and take a look at the exercise files that were downloaded, I can see two archives for the BinaryVille website, a zip archive and a tarred and gzipped archive. These archives have the html, images, and other files we'll need for the BinaryVille website. I'll be working with the tar archive and there's a command in the exercise files I can use to extract the website. Here's the command so I'll just select this and go back to the terminal. In the terminal…

Contents