University of Engineering & Technology, Taxila
University of Engineering & Technology, Taxila
Technology, Taxila
Lab No. 3
System Programming
(CP-410)
If Apache is correctly installed, the default CentOS test page should appear.
Create the document root and index pages for all three sites
sudo mkdir -p /var/www/html/site1 sudo
vi /var/www/html/site1/index.html
sudo mkdir -p /var/www/html/site2 sudo
vi /var/www/html/site2/index.html
sudo mkdir -p /var/www/html/site3 sudo
vi /var/www/html/site3/index.html
In index.html write this content we create simple three different pages as seen below
On Port localhost:80
On Port localhost:8080
On Port localhost:9090