Headlines News :
Home » » Setting Web Server dengan LAN

Setting Web Server dengan LAN

Written By Unknown on Jumat, 10 Agustus 2012 | Jumat, Agustus 10, 2012

Saya terbiasa menyimpan hasil kerja saya pada file terpisah dari xampp, karena lebih cepat mencari dan membackup nya.
utk melakukannya cukup merubahan httpd.conf ( program file > xampp > apache > conf ).

    Code:

    #
    #
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    #
    ##DocumentRoot "C:/Program Files/xampp/htdocs"
    DocumentRoot "D:/Web"

    Kemudian cari bagian Virtual Host pada httpd.conf (biasanya terletak pd bagian bawah dan ubah seperti di bawah ini

        Code:

        # Virtual hosts
        Include conf/extra/httpd-vhosts.conf



    membuat V-Host

    buka httpd-vhosts.conf ( program file > xampp > apache > conf > extra )

    pertama² tuliskan pada bagian bawah

        Code:

        NameVirtualHost *:80

        <virtualhost>
        DocumentRoot "D:/Web"
        </virtualhost>



    Kemudian tambahkan hasil kerja anda pada baris berikutnya


        Code:

        <virtualhost>
        DocumentRoot "D:/Web/ bumiayu-hacker.blogspot.com"
        ServerName bumiayu-hacker.blogspot.com
        ServerAlias www. bumiayu-hacker.blogspot.com
        </virtualhost>


    hasil akhirnya akan seperti ini


        Code:

        NameVirtualHost *:80

        <virtualhost>
        DocumentRoot "D:/Web"
        ServerName localhost
        </virtualhost><virtualhost>
        DocumentRoot "D:/Web/bumiayu-hacker"
        ServerName bumiayu.net
        ServerAlias www. bumiayu-hacker.blogspot.com
        </virtualhost>



    Menambahkan V-Host pada Windows

    Buka file Host ( Windows > System32 > drivers > etc )

    tambahkan alamat web anda.


        Code:

        127.0.0.1 localhost
        127.0.0.1 bumiayu-hacker.blogspot.com
        127.0.0.1 www. bumiayu-hacker.blogspot.com


    Agar client dapat meng-akses web server dalam 1 jaringan anda cukup menambahkan V-Host pada Windows client anda. Caranya sama seperti diatas.

    Buka file Host pada comp client ( Windows > System32 > drivers > etc )

    misalkan IP server anda adalah 202.168.0.1 maka tambahkan alamat web anda seperti berikut.


        Code:

        202.168.0.1 localhost
        202.168.0.1 bumiayu-hacker.blogspot.com
        202.168.0.1 www.bumiayu.net


    Save semua hasil kerja anda dan restart apache atau restart windows anda jika diperlukan.
    setelah apache berjalan kembali test menggunakan browser kesayangan anda dgn mengetik bumiayu.net atau http:// bumiayu.net atau www. bumiayu.net

    Semoga membantu...

    Peralatan yang dibutuhkan :
    1. Script PHP kamu
    2.http://www.appservnetwork.com/
Share this article :

0 komentar:

Speak up your mind

Tell us what you're thinking... !

Entri Populer

 
█║▌│█│║▌║││█║▌│║▌║█║║▌
Cyber4rt 2012 | SomeRight Reserved Copyright © 2011. bumiayu - All Rights Reserved
Template Modified by Hack4rt | Novalbintangs