mo tanya ip aliasing dunk ku pake ubuntu

nah settingan
/etc/apache2/sites-available/misal1

begini :
ServerName misal1
<VirtualHost 10.254.135.202:80>
        ServerAdmin webmas...@localhost
        ServerAlias misal1
        DocumentRoot /var/www/main
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/main>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>


        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

ErrorLog /var/log/apache2/misal1-error_log
CustomLog /var/log/apache2/misal1-access_log common

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>



nah settingan
/etc/apache2/sites-available/misal2

begini :
ServerName misal2
<VirtualHost 10.254.135.213:80>

        ServerAdmin webmas...@localhost
        ServerAlias misal2

        DocumentRoot /var/www/second
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/second>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

ErrorLog /var/log/apache2/misal2-error_log
CustomLog /var/log/apache2/misal2-access_log common

</VirtualHost>

nah settingan
/etc/apache2/ports.conf

begini :
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz

Listen *:80






<IfModule mod_ssl.c>
    # SSL name based virtual hosts are not yet supported, therefore no
    # NameVirtualHost statement here
    Listen 443
</IfModule>




nah settingan
/etc/network/interfaces

begini :
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

#- The primary network interface

auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
        address 10.254.135.202
        netmask 255.255.255.0
        broadcast 10.254.135.255
        gateway 10.254.135.254


auto eth0:1
#iface eth0 inet dhcp
iface eth0:1 inet static
        address 10.254.135.213
        netmask 255.255.255.0
        broadcast 10.254.135.255
        gateway 10.254.135.254



nah settingan /etc/hosts

begini:

127.0.0.1       localhost
127.0.1.1       abot.intranet.pajak.go.id       abot
10.254.135.202 misal1.com misal1
10.254.135.213 misal2.com misal1

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


trus di eksekute

sudo a2ensite misal1
sudo a2ensite misal2

sudo /etc/init.d/apache2 restart


 kok ngga bisa hidup yang 10.254.135.213 ketika kita ketik di browser ya?

padahal kalo yang 10.254.135.202 bisa lho

btw settingan diatas kelebihan atau kekurangannya mohon perbaikannya

-- 
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [email protected]
Arsip dan info milis selengkapnya di http://linux.or.id/milis

Kirim email ke