Step-by-Step Guide to Building a Web Page with NGINX
Lalita Kashyap
1 min read
Create web page on nginx for demo
- Update all packages
sudo apt-get update -y
- Now install nginx
sudo apt-get install nginx -y
- Move into directory
cd /var/www/html
- List the file and directory
ls
- Create file for creating web page "sudo vim index.html"
<h1> This is my server </h1>
- Restart nginx
sudo systemctl restart nginx
- Now copy public ip of instance
- Open browser and paste ip(Your web page is running)
Setting up a web page using NGINX can seem daunting at first, but by following above steps, you’ve successfully created a functional web server!
Thank you🙏
Keep Learning..
0
Subscribe to my newsletter
Read articles from Lalita Kashyap directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by