You are on page 1of 1

Langkah pertama, edit file /etc/hosts Pertama edit dulu file hosts yang berada di /etc/hosts dan tambahkan

konfigurasi seperti dibawah ini : #localhost ini dipakai supaya default htdocs tetap aktif 127.0.0.1 localhost 127.0.0.1 dev.edbapp.com Langkah kedua, edit file httpd.conf Buka file /opt/lampp/etc/httpd.conf dan pastikan line dibawah ini tidak di comme nt (diawali dengan tanda #) # Virtual hosts Include etc/extra/httpd-vhosts.conf Langkah ketiga, edit file /opt/lampp/etc/extra/httpd-vhosts.conf Pada file tersebut tambahkan konfigurasi seperti dibawah ini : <VirtualHost *:80> ServerAdmin admin@localhost DocumentRoot /opt/lampp/htdocs ServerName localhost ServerAlias localhost ErrorLog logs/localhost.error_log CustomLog logs/localhost.access_log common <Directory "/opt/lampp/htdocs"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *:80> ServerAdmin admin@dev.edbapp.com DocumentRoot /home/dai/www/dev.edbapp.com ServerName dev.edbapp.com ServerAlias dev.edbapp.com ErrorLog logs/dev.edbapp.com.error_log CustomLog logs/dev.edbapp.com.access_log common <Directory "/home/dai/www/dev.edbapp.com"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> Restart xampp kemudian coba buka url http://dev.edbapp.com di browser untuk mema stikan konfigurasi berhasil.

You might also like