How to host your domain on your pc using apache ?

Discussion in 'Apache' started by bilalghouri, Jul 8, 2007.

Thread Status:
Not open for further replies.
  1. #1
    My isp has done something with 2 domains..
    connect.net.pk
    and
    dodear.com

    they only work for our network(our LAN network, proxy connection)
    these domains only work for us in our LAN .

    I am explaining what actually happens.
    I have a LAN connection from an ISP(multinet boradband)
    i have to connect to internet using a dialer just like a dialup connection.
    This is most unusual type of LAN connection.
    It is not DSL nor Broadband , It is a proxy connection which requires to connect to internet through a dialer or else we can only use LAN software and LAN games like counter strike and Vypress Chat.
    I mean if i will not connect the dialer, i will not be able to use internet,
    but i will be able to use Lan games and Softwares.
    and my main point is ,
    If i will not connect to dialer, i will still be able to use these 2 websites which works only on our local area network :-
    connect.net.pk
    and
    dodear.com

    i wanted to know... how they can work for us if we are not connected to internet and why dont they work for you guys.

    i know connect.net.pk will work for you guys,
    BUT this will not be the real website which only We can access..
    this will be a totally different site if u open it.
    but it will be different for us on our LAN connection.

    Is anyone able to explain what is the secret behind these websites?

    and yeah.. my ISP is using apache(Xampp) on both websites.
    and both website are hosted on different pc's of my ISP.. they are not hosted on internet , their ips are local ones.. like ours.. i.e :
    my internal ip is : 10.101.10.202
    their ips are:
    connect.net.pk = 10.101.10.24
    dodear.com = 10.101.10.25
     
    bilalghouri, Jul 8, 2007 IP
  2. KalvinB

    KalvinB Peon

    Messages:
    2,787
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Those are internal ip address.

    If you want the outside world to be able to see your sites you have to get them connected to an external ip address.

    connect.net.pk resolves to 66.98.220.75
    dodear.com resolves to 68.178.232.99 which is just a parked domain.

    What you need to do is set your DNS records to point those domains to the external IP of your network. Then you have to tell the router to forward requests on port 80 to the internal ip used by your web-server.

    Then, your web-server needs to be configured to handle whatever domains you're running. A single installation of Apache can handle multiple domains.
     
    KalvinB, Jul 10, 2007 IP
  3. bilalghouri

    bilalghouri Banned

    Messages:
    296
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    but how can i host my domain to my pc?
    i dont want whole world using that website
    i just want my network users to use that domain
    i just want to point it to my internet ip.
    how can i do it?
     
    bilalghouri, Jul 11, 2007 IP
  4. KalvinB

    KalvinB Peon

    Messages:
    2,787
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Then just set the dns settings for that domain to use the internal ip of the server running it.
     
    KalvinB, Jul 11, 2007 IP
  5. bilalghouri

    bilalghouri Banned

    Messages:
    296
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    hhhhhh :mad: server is my own PC .
    and their dns resolves to an external ip.
    if they didnt put their internal ip on their dns then why should i ?
    and there is no contact between domain and internet.
    if u cant read properly , then dont post incorrect answers.
     
    bilalghouri, Jul 17, 2007 IP
  6. KalvinB

    KalvinB Peon

    Messages:
    2,787
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I think you need to figure out how the internet works.

    The domain name will resolve to whatever IP is in the DNS settings. If you want it to resolve to an external IP, use an external IP. If you want it to resolve to an internal IP, use an internal IP.

    I don't even know who "their" is.

    If "they're" resolving to an external IP but only internal computers can access it then they're just blocking external IPs using htaccess or Apache's conf file.

    There is more than one way to do it.
     
    KalvinB, Jul 17, 2007 IP
  7. bilalghouri

    bilalghouri Banned

    Messages:
    296
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    ok now..just tell me how to point my main domain not subdomain from namecheap to my pc.
    i parked stats.bilalghouri.com to my internal ip using their dns client.
    but their dns client doesnt support parking of main domain i.e : bilalghouri.com ,
    if u can tell me how to park that domain on my internal ip..i will give u a +rep , itrader :)
     
    bilalghouri, Jul 19, 2007 IP
  8. KalvinB

    KalvinB Peon

    Messages:
    2,787
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I've never used namecheap.

    There's no reason that the main domain shouldn't be able to be set.

    Perhaps you're missing the "." after bilalghouri.com. when setting up the A record
     
    KalvinB, Jul 19, 2007 IP
  9. bilalghouri

    bilalghouri Banned

    Messages:
    296
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    hey i tried a thing.. but i still dont know how my isp did it.
    i used namecheap's nameserver(parked my domain on namecheap).
    then i clicked on all host records.
    and then i changed my domain's ip to my own internet ip.
    and it worked.
    my domain is parked at my own pc's apache web server.
    but i still cant figure out how my isp did this.
    if someone else goes to dodear.com , they see a parked page..
    while if someone from our network goes their.. their website loads.
    my website( bilalghouri.com) loads for my network users.. but it doesnt load for others like you.. i mean it says connection time out and doesnt show a namecheap parked page.. i want to know how to do this.


    well i will explain with this example :

    lets say 1 = my network users and 2 = you guys

    dodear.com --> 1 --> real website ,
    dodear.com --> 2 --> parked page.

    now

    bilalghouri.com --> 1 --> real website ,
    bilalghouri.com --> 2 --> connection time out :s

    i want my domain to work like dodear.com ..
    can anyone help me ?
     
    bilalghouri, Jul 22, 2007 IP
  10. Scriptona

    Scriptona Notable Member

    Messages:
    4,957
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    280
    #10
    firs you need dynamic dns service to sync your ip to be updated all the time so u may use www.no-ip.com

    second thing (easiest) to download and install Xampp and this will turn your PC into a web server ( or else download the portable version from Here

    I was using this for file sharing between me and some friends so i can give http links for files on my pc it it works fine
     
    Scriptona, Jul 24, 2007 IP
Thread Status:
Not open for further replies.