Difference between revisions of "Konfigurasi Sederhana Virtual Host di Apache"
Jump to navigation
Jump to search
Silfianaelfa (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
| Line 19: | Line 19: | ||
</VirtualHost> | </VirtualHost> | ||
| − | edit file /etc/apache2/ports.conf | + | edit file |
| − | hapus kalimat 'NameVirtualHost *:80' | + | |
| + | # vi /etc/apache2/ports.conf | ||
| + | |||
| + | hapus / remark kalimat | ||
| + | |||
| + | 'NameVirtualHost *:80' | ||
| + | |||
| + | menjadi | ||
| + | |||
| + | # 'NameVirtualHost *:80' | ||
==Referensi== | ==Referensi== | ||
Revision as of 10:28, 23 November 2011
Biasanya akan menarik untuk membuat Virtual Host sehingga di sebuah mesin ada beberapa mesin / Web yang berjalan sekaligus. Contoh konfigurasi Virtual Host adalah
# vi /etc/apache2/sites-enabled/000-default
Tambahan entry untuk masing-masing mesin / host kira-kira sebagai berikut
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName forum.domainanda.com
DocumentRoot /var/www/forum
<Directory /var/www/forum/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
edit file
# vi /etc/apache2/ports.conf
hapus / remark kalimat
'NameVirtualHost *:80'
menjadi
# 'NameVirtualHost *:80'
Referensi
- http://httpd.apache.org/docs/ - dokumentasi apache