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>
Tidak ada komentar:
Posting Komentar