How to delopy website?
Deploying a website means that you are deploying changes you have made to your website, typically code, from source control to an environment (typically development, staging, or live).
Apache 2 : Host multiple websites in one server with ip ;
sudo -i
password
apt update
apt install apache2
service apache2 status
service apache2 start
cd /etc/apache2
cd sites-available/
nano web1.com.conf
cp web1.com.conf web2.com.conf
nano web2.com.conf
cd /var/www
mkdir web1
mkdir web2
cd web1
nano index.html
cd ..
cd web2
nano index.html
a2dissite 000-default.conf
a2ensite web1.com.conf
service apache2 restart
a2ensite web2.com.conf
service apache2 restart
cd /etc
nano hosts
cd ~
cat explain | less
Comments