You are on page 1of 2

Web server apt-get install apache2 php5 cp /etc/apache2/sites-available/default /etc/apache2/sites-available/sekolah cp /etc/apache2/sites-available/default /etc/apache2/sites-available/institusi nano /etc/apache2/sites-available/sekolah isi seperti ini

<VirtualHost *:80> ServerAdmin webmaster@sekolah.sch.id ServerName www.sekolah.sch.id ServerAlias sekolah.sch.id DocumentRoot /var/www/sekolah <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/sekolah/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>

nano /etc/apache2/sites-available/institusi
<VirtualHost *:80> ServerAdmin webmaster@institusi.com ServerName www.institusi.com ServerAlias institusi.com DocumentRoot /var/www/institusi <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/institusi/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all

</Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>

Lalu ketik perintah cd /var/www/ setelah itu mkdir sekolah (enter) mkdir institusi (enter) Lalu ketik perintah cd Lalu ketik cp /var/www/index.html /var/www/sekolah cp /var/www/index.html /var/www/institusi Lalu edit nano /var/www/sekolah/index.html Dan nano /var/www/sekolah/index.html lalu ketik perintah a2dissite default a2ensite sekolah a2ensite institusi lalu restart /etc/init.d/apache2 restart

You might also like