You are on page 1of 1

1. buat configurasi pada apache.

cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-
available/site1.conf
cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-
available/site2.conf
cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-
available/site3.conf

_____________________________________________________________________________
<VirtualHost *:80>
ServerName www.site1.com
ServerAdmin webmaster@site1.com
DocumentRoot /var/www/html/site1
ErrorLog /var/log/apache2/virtual.host.error.log
CustomLog /var/log/apache2/virtual.host.access.log combined
LogLevel warn
</VirtualHost>

mkdir -p /var/www/html/site1
mkdir -p /var/www/html/site2
mkdir -p /var/www/html/site3

You might also like