Apache question

Discussion in 'Computers and The Internet' started by Dave_techie, Dec 7, 2008.

  1. Dave_techie

    Dave_techie I call Sheniangans

    Messages:
    14,932
    Likes Received:
    3
    Okay, assume I am running apache, I type in 192.168.1.99 (me on the network) and it brings me to apache's root directory, runs index.htm


    How do I let someone at a remote location get to that?

    say, I wanted to let one of you download a file from that root directory, what url would you have to type in?
     
  2. raysun

    raysun D4N73_666 4861786f72

    Messages:
    932
    Likes Received:
    10
    i guess the person would have to point his/her browser to your public IP through port 80
     
  3. coders333

    coders333 Member

    Messages:
    248
    Likes Received:
    0
    login to your router, (assuming you have one) and go to "virtual servers" or "port forwarding" and set up an entry, (if theres not already one, if there is you probably just need to enable it and set an ip address) for http use port 80, and forward it to the machine running apache's ip address. then all you need to do is let whoever you want to see the page know your public ip address. you can find your public ip in the router's settings, or just go to www.ipchicken.com
     
  4. Adderall_Assasin

    Adderall_Assasin Senior Member

    Messages:
    1,266
    Likes Received:
    1
    Yes. Something like that.

    The router assigns IP's for your private network. These IP's are hidden from the Internet world.

    192.168.1.99 is the address on your private network. Anyone with a private network can have this address on a node. What you need is a public address that the Internet world can see. There is only one entry for each public address.

    You will need an ISP with static addressing. Otherwise, your ISP will occasionally renew the IP and so the IP changes. You may need a domain name for others to easily access your server.

    NAT (Network Address Translation) is a good way to protect your network.
    DMZ (De-Militarized Zone) is how you separate the servers you want the outside world to see, and the other network nodes that should be hidden.

    http://en.wikipedia.org/wiki/IP_address
    http://en.wikipedia.org/wiki/Network_address_translation
    http://en.wikipedia.org/wiki/Demilitarized_zone_(computing)
     
  5. DNCämþër

    DNCämþër Lifetime Supporter Lifetime Supporter

    Messages:
    437
    Likes Received:
    1
    I use a dynamic dns service for apache on my pc. (using windoze) that points to my isp/ip number (dyndns.org is a good one or you could use zoneedit)...

    then the machine I use for the server is opened in the router with the IP of, say, 192.168.1.145 and specifically named in my pc's tcp/ip settings to be the same ip number always.

    In the apache config the listen port would be "Listen 80" my server name is ServerName your_external_ip_adress:80 or your dynamic dns name

    My document root would be something like "D:/usr/htdocs"

    You should be able to go to http://your_external_ip_address/ and anything you place in that document root folder will be visible to the web
     
  6. coders333

    coders333 Member

    Messages:
    248
    Likes Received:
    0
    you dont have to have a static address, or really a domain name either, i have been running my sites from my house's dynamic ip for nearly 3 years now, and it has only changed about 3 times on its own, but it usually will change if you plug in a different router to your modem.
     
  7. Dave_techie

    Dave_techie I call Sheniangans

    Messages:
    14,932
    Likes Received:
    3
    figured it out, works great with my dynamic DNS

    thanks.
     
  8. Jedite83

    Jedite83 Members

    Messages:
    1,163
    Likes Received:
    7
    You consider using FTP (or SFTP)? If you want to do file serving you may find that a better choice them a program intended to serve webpages. Yes apache will do what you want, but FTP may be more adapt.
     
  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