In this video I show how to deploy a simple website ( My resume) in VM Instance in google cloud platform. I also show how to configure a simple website in HTML in apache.
Configure a simple website in HTML in apache:
1.Install Apache:
sudo apt update
sudo apt install apache2
2. start and enable apache:
sudo systemctl enable apache2
sudo systemctl start apache2
3.create a directory of your site:
sudo mkdir /var/www/printziana
4.Set permissions:
sudo chown -R www-data:www-data /var/www/printziana
sudo chmod -R 755 /var/www/printziana
5.create a HTML file:
sudo nano /var/www/printziana.com/index.html
Add HTML code:
or copy paste your website files from your local machine to your vm instance
6.Create a virtualHost configuration:
sudo nano /etc/apache2/sites-available/printziana.conf
7.enable site:
sudo a2ensite printziana.com
8.Disable default site:if it is necessary or other sites if there is any:
sudo a2dissite 000-default-conf
9.test configuration and restart apache2
sudo apache2ctl configtest
sudo systemctl restart apache2
In the link below is another way (less steps) how to deploy a static website using Apache2 default files and folders:
• Host website in Apache2 using GitHub ...
Смотрите видео Deploy simple website(My resume) in VM Instance GCP - Configure a simple website in HTML in apache онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Albania20 28 Январь 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 53 раз и оно понравилось 1 людям.