New To Linux
Web Server
- Helps in hosting web sites/pages
- Responds to http/https Requests

- Popular Web Servers are
- Apache Web Server
- Nginx Web Server
- Microsoft IIS
Apache Web Server
- Create a ubuntu linux
- Login into the linux system
- Install apache webserver
sudo apt-get update
sudo apt-get install apache2 -y
sudo apt-get install apache2-doc -y
# Check
sudo service apache2 status
Play with Document Root
- Default Document root is /var/www/html
- The default page is shown from here
- Navigate to this folder
# log in to the linux machine
# Become root user
sudo -i
cd /var/www/html
- Create some more html files
cp index.html info.html
# http://<publicip>/info.html
echo "Hello, Welcome to test page" > test.html
# http://<publicip>/test.html
Configuration
Like this:
Like Loading...