Membangun forum, blog, atau website jenis apapun banyak dilakukan di localhost (komputer lokal/pribadi) sebagai latihan sebelum di-upload di server / hosting yang sesungguhnya.
Namun bagaimana kalau kita membangun forum tapi hanya dikhususkan untuk pengguna intranet atau komputer2 yang terhubung dalam LAN (jaringan lokal) ?
Perangkat yang kita gunakan untuk praktek kali ini adalah:
- OS: Windows XP SP2
- Software Lain: WAMP (Windows, Apache, Mysql, PHP)
- Minimal 2 komputer yang saling terkoneksi atau LAN dengan bbrp komputer
Setting IP Komputer contohPC1: 192.168.2.194 (sebagai server forum)
PC2: 192.168.2.195 (klien atau node lain)
Instalasi WAMP ada di sini:
http://if.web.id/index.php?topic=778.0Asumsi Anda sudah berhasil menginstal WAMP, berikutnya, aktifkan modul apache yang kira2 diperlukan seperti:
- rewrite_module
- vhost_alias_module
Tampilan web localhost adalah seperti ini:

Berikutnya silakan Anda instal forum SMF di localhost (pada komputer yang akan dijadikan server), tutorial lama ada di sini:
http://if.web.id/index.php?topic=103.0Jika sudah selesai, sebagai tes awal, untuk memanggil alamat website/forum dari komputer klien biasa ke komputer server adalah dengan mengetikkan alamat IP Komputer server, yaitu: 192.168.2.194.
Sebelum di-setting akan memunculkan tampilan berikut:
SETTING- Aktifkan modul Apache - Virtual Host jika belum, yaitu vhost_alias_module

- Buka file httpd.conf, biasanya ada di sini:
C:\wamp\bin\apache\Apache2.2.11\conf\httpd.conf
Atau bisa juga Anda buka melalui sytray-nya WAMP.
Cari tulisan berikut di bagian bawah file:
# Virtual hosts
# Include conf/extra/httpd-vhosts.conf
Hilangkan tanda komentar # di file konfigurasinya, sehingga nampak seperti di bawah ini:
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
Kemudian simpan.
- Berikutnya buka file konfigurasi virtual host di:
C:\wamp\bin\apache\Apache2.2.11\conf\extra\httpd-vhosts.conf
Isi file tersebut seperti ini:
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
ServerName 127.0.0.1
DocumentRoot "C:/wamp/www/smf1"
ErrorLog "logs/smf-error.log"
CustomLog "logs/smf-access.log" common
<Directory />
Options FollowSymLinks
AllowOverride FileInfo Options
</Directory>
<Directory "C:/wamp/www/smf1">
Options Indexes FollowSymLinks
AllowOverride FileInfo Options
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "C:/wamp/www/"
ServerName localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
- Penjelasan sekilas bagian utama, yaitu alamat forum SMF Anda:
<VirtualHost *:80>
ServerName 127.0.0.1
DocumentRoot "C:/wamp/www/smf1"
ErrorLog "logs/smf-error.log"
CustomLog "logs/smf-access.log" common
<Directory />
Options FollowSymLinks
AllowOverride FileInfo Options
</Directory>
<Directory "C:/wamp/www/smf1">
Options Indexes FollowSymLinks
AllowOverride FileInfo Options
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Tulisan biru tersebut adalah alamat direktori dari forum Anda.
- Bagian 2
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "C:/wamp/www/"
ServerName localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
Tulisan hijau di atas adalah alamat localhost Anda, yaitu memunculkan homepage WAMP.
- Dalam systray WAMP, silakan Anda restart semua servis, yaitu dengan memilih Restart All Services
Sekarang alamat IP server (forum) bisa dipanggil di komputer lain dalam jaringan dengan sesuai, contoh tampilan:

Selamat mencoba.
