Membuat Apache Virutal Host
November 10, 2009 · Posted in Linux
Virutal Host di apache adalah membuat beberapa web dengan domain yang berbeda dapat di simpan dalam satu web server. Berikut ini adalah tahapan meng configur Vhost di apache (dengan anggapan apache sudah terinstal sebelum nya). Tahapan konfigurasi Virutal Host :
- Buka file configurasi apache httpd.conf, bisanya terletak pada /etc/httpd/conf/httpd.conf
- Tambahkan baris perintah berikut untuk menentukan nama host nya
NameVirtualHost your-hostname
- Buat virtual host nya
<VirtualHost your-hostname:80>
DocumentRoot /var/www/html/host-1
ServerName your-virtual-host-name-1
</VirtualHost>
<VirtualHost your-hostname80>
DocumentRoot /var/www/html/host2
ServerName your-virtual-host-name-2
</VirtualHost>
Comments
Leave a Reply

