Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
If you copied their example verbatim, then NGINX is going to pull content from:
/usr/share/nginx/html
This is defined by the root directive in the server block. To point that to your own directory, you will need to change that directive to match your custom directory.
So if you’re using:
server {
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
You’ll need to change root /usr/share/nginx/html; in the location / block. There are, however, better ways to setup server blocks, but for the purpose of setting up an example, that’s all that you need to do.
Once you save the changes, you’ll need to restart NGINX using:
systemctl reload nginx
or
systemctl restart nginx
If we throw PHP, NodeJS, or another language in to the picture, we need to change things around.