Configuration of Apache to work the php webpage on Intranet

Discussion in 'PHP' started by newphpcoder, Nov 27, 2010.

  1. newphpcoder

    newphpcoder New Member

    Joined:
    Sep 24, 2010
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Web Programmer
    Location:
    Philippines
    Good day!

    I am used the ff: to up my webpage

    Windows Server 2003 32 Bit
    Xampp 1.7.1

    My folder that consist of my php file was on the htdocs folder. When I run http:\\localhost\MYFOLDER\index.php
    My webpage was appear or run. But I want to happen is the client will only input the url like this : site.dlp.ph

    I dont know how can i do that,, because i'm not familiar with the apache.

    I want that the other computer can access my webpage using intranet.

    I tried to used virtual host like this:

    <Virtual Host 182.10.10.101>
    Document Root "C:\xampp\htdocs\MYFOLDER\index.php"
    Server Name dllp.ph
    </Virtual Host>

    When I run the http:\\182.10.10.101
    the output is the webpage of xampp

    I also create a DNS forward lookupzone but it did not work.

    I hope somebody can help me.

    Thank you
     
  2. dannerr

    dannerr New Member

    Joined:
    Nov 29, 2010
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    none
    Location:
    none
    Edit your hosts file (in windows, it is c:\windows\system32\drivers\etc\) and map site.dlp.ph to your localhost IP address. This will cause the domain to resolve correctly. You'll need to do this on your clients machine too.
     
  3. newphpcoder

    newphpcoder New Member

    Joined:
    Sep 24, 2010
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Web Programmer
    Location:
    Philippines

    Thank you
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice