• smkn 1 kawali
  • HME UNTAG'45 Cirebon

Virtual host redhat 9

 on Rabu, 02 Mei 2012  

edit httpd.conf

#Tambahkan script sbb: dibawah name virtualhost
#scriptnya:
NameVirtualHost IPServer
<VirtualHost IPserver>
                ServerAdmin                     nama email admin
DocumentRoot                 path web tersimpan #default
ServerName                      namadomain
Server Alias                        nama server alias
</VirtualHost>
<VirtualHost IPserver>
                ServerAdmin                     nama email admin
                DocumentRoot                 /home/user/public_html
ServerName                      nama domain lengkap (alias)
</Virtuahost>
dan seterusnya…………
#untuk mail
<VirtualHost IPserver>
ServerAdmin                     nama email admin
DocumentRoot                 /usr/share/squirrelmail
ServerName                      mail.namadomain
</VirtualHost>

#atau jika sudah dibikin Link dg sofswich maka:
<VirtualHost IPserver>
                ServerAdmin                     nama email admin
DocumentRoot                 /var/www/webmail
ServerName                      mail.namadomain
</VirtualHost>

Contoh:
#nama VirtualHost 192.168.30.1
<VirtualHost 192.168.30.1>
                ServerAdmin                     admin@lks30.sch.id
                DocumentRoot                 /var/www
                ServerName                      lks30.sch.id
                ServerAlias                         www.lks30.sch.id
</VirtualHost>
<VirtualHost 192.168.30.1>
                ServerAdmin                     aman@lks30.sch.id
                DocumentRoot                 /home/aman/public_html
                ServerName                      aman.lks30.sch.id
</VirtualHost>
<VirtualHost 192.168.30.1>
                ServerAdmin                     admin@lks30.sch.id
                DocumentRoot                 /usr/share/squirrelmail
                ServerName                      mail.lks30.sch.id
</VirtualHost>

Virtual host redhat 9 4.5 5 Unknown Rabu, 02 Mei 2012 edit httpd.conf #Tambahkan script sbb: dibawah name virtualhost #scriptnya: NameVirtualHost IPServer <VirtualHost IPserver> ...


Tidak ada komentar:

Posting Komentar

J-Theme