Setting HTTP Server dengan Virtual Host


Edit file konfigurasi apache pada
# vi /etc/httpd/conf/httpd.conf

Cari dan ubah opsi menjadi seperti berikut

Listen 80
User apache
Group apache
ServerAdmin root@localhost
ServerName localhost
UseCanonicalName Off
DocumentRoot "/var/www/html"

Agar dapat berfungsi sebagai Name based Virtual host maka tambahkan baris baris berikut pada bagian bawah file konfigurasi httpd.conf.




















Untuk menjalankan service secara otomatis pada saat booting
# chkconfig httpd on

Untuk mengontrol service httpd dengan
# /etc/init.d/httpd { start | stop | restart | condrestart | reload | status | fullstatus | graceful | help | configtest }

Popular posts from this blog

Howto configure boot device order on ILOM

SAN Switch Config Command

Howto cstm on HP-UX