change apache page 1

change apache page

//to change the default page apear on port 80
mv [your page] index.[somthing]
cp [your page] /var/www/html/[your page]
sudo service apache2 restart

Here is what the above code is Doing:
1. We’re using the mv command to move the file we want to be the default page to the root directory of the web server.
2. We’re using the cp command to copy the file to the /var/www/html directory.
3. We’re using the sudo service apache2 restart command to restart the Apache web server.

Similar Posts