How do I serve static content from Apache web server?
In this article we will see how we can configure Apache server for serving static content. For example, the URL http://localhost/static/logo.png will send the image ./static/logo. png to the client. The alias directive element allows documents to be stored in the local file system other than under the DocumentRoot.
How to install apache2 server :
sudo -i
password
sudo apt update
sudo apt install apache2
service apache2 status
service apache2 start
service apache2 stop
service apache2 restart
Uninstall keys :stall keys :
sudo apt remove apache2.
uninstall keys :
sudo apt remove apache2
Website create for this process to apache server install and vim file created:
cd
cd /etc
cd apache2
cd sites-available/enable
cd sites-available/
cd ..
cd /var/www/html
vi index.html
Local server to server move file :
scp i "pemkey path" r/folderpath ubuntu@ip address:/var/www/html
Comments