SMEOnffLine: Mengubah nama mesin dan DNS Server lokal

From OnnoWiki
Revision as of 07:43, 6 January 2010 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Misalnya nama server yang anda inginkan adalah

ukm.co.id

Set /etc/hostname

# echo ukm.co.id > /etc/hostname

Set /etc/hosts

# vi /etc/hosts

isi dengan

127.0.0.1      localhost
192.168.0.254  ukm.co.id ukm mahara.ukm.co.id www.ukm.co.id
ip.add.server  ukm.co.id ukm mahara.ukm.co.id www.ukm.co.id

Set hostname pada Postfix SMTP Server

# vi /etc/postfix/main.cf

Misalnya

myhostname = ukm.co.id
mydestination = ukm.co.id

Set nama hostname pada Webmail

/usr/sbin/squirrelmail-configure
  2 -> 1 -> ukm.co.id  -> S -> Q

Sesuaikan apache

vi /etc/apache2/sites-enabled/mahara-httpd.conf
<VirtualHost *:80>
        ServerName mahara.ukm.co.id
        DocumentRoot /var/www/mahara/htdocs

        ErrorLog /var/log/apache2/mahara.error.log
        CustomLog /var/log/apache2/mahara.access.log combined

        <Directory /var/www/mahara/htdocs>
                AllowOverride All
        </Directory>
</VirtualHost>


Pranala Menarik