Personal Web Server

Discussion in 'General Mac Discussion' started by oldschool, Feb 20, 2004.

  1. oldschool macrumors 65816

    oldschool

    Joined:
    Sep 30, 2003
    #1
    Is there any way that I can set up a personal web server? So I would be able to give someone my IP address so they can look at my sites folder?
     
  2. Doctor Q Administrator

    Doctor Q

    Staff Member

    Joined:
    Sep 19, 2002
    Location:
    Los Angeles
    #2
    I think you can. Technically, it should just be a matter of configuring whatever firewall you use, which can be straightforward or dauntingly hard to figure out.

    If the visitors to your personal web server aren't going to be in your local network, there is also the matter of legality, since some ISPs say, in the fine print of the contract you "agreed to", that you won't run any servers. There is very little chance, however, that they would give you any trouble as long as you aren't running a service that uses a noticable amount of bandwidth. A web server for friends to access shouldn't be a problem.
     
  3. sonofslim macrumors 6502a

    sonofslim

    Joined:
    Jun 6, 2003
    #3
    a lot of ISPs also assign IP addresses dynamically, which means that your IP address today might not be your IP address tomorrow.
     
  4. Phatpat macrumors 6502a

    Phatpat

    Joined:
    Jun 15, 2003
    Location:
    Washington DC
    #4
    System Prefs --> Sharing --> Personal Web Sharing.

    If you have a dynamic IP you could use some like this: DynDNS.org
     
  5. OutThere macrumors 603

    OutThere

    Joined:
    Dec 19, 2002
    Location:
    NYC
    #5
    I prefer http://www.no-ip.com/
     
  6. oldschool thread starter macrumors 65816

    oldschool

    Joined:
    Sep 30, 2003
    #6
    Thanks guys but how would I go about doing this if I'm using AirPort with IP distribution on so I get a 10.0.0.0 address?
     
  7. OutThere macrumors 603

    OutThere

    Joined:
    Dec 19, 2002
    Location:
    NYC
    #7
    Well, the first thing that we need to know is if you are planning on putting the site up for the world to see, or just people on your home (or office) network.
     
  8. oldschool thread starter macrumors 65816

    oldschool

    Joined:
    Sep 30, 2003
    #8
    I know how to make a site for an intranet...so people at my house can see it, but I'd like to be able to make it so anybody can see it.

    Can you help me with this?
     
  9. varmit macrumors 68000

    varmit

    Joined:
    Aug 5, 2003
    #9
    use no-ip.com

    What they do is give you IP address a name, so you don't have to give out the numbers.

    Mine: http://ducktapeandglue.no-ip.org

    Go to their site, get the free service and configure it to resolve the name to your address on a certain port. Now mine is on a Cable modem, with limited upload so it can sometimes take time to load.
     
  10. oldschool thread starter macrumors 65816

    oldschool

    Joined:
    Sep 30, 2003
    #10
    ok now i did all that, and my address is http://inabru.hopto.org

    The problem however is that it just takes people to the apache server page.
     
  11. crazzyeddie macrumors 68030

    crazzyeddie

    Joined:
    Dec 7, 2002
    Location:
    Florida, USA
  12. oldschool thread starter macrumors 65816

    oldschool

    Joined:
    Sep 30, 2003
    #12
    Yeah I thought that might be it, but that doesn't work either.

    inabru.hopto.org/~stefan
     
  13. oldschool thread starter macrumors 65816

    oldschool

    Joined:
    Sep 30, 2003
    #13
    ahhh nevermind. I changed the index page from .htm to .html and that worked.

    Can somebody explain the difference between an HTM and HTML extension?
     
  14. oldschool thread starter macrumors 65816

    oldschool

    Joined:
    Sep 30, 2003
    #14
    Ok i think its working.

    I tried it through a proxy server and seems to be ok.
     
  15. Nermal Moderator

    Nermal

    Staff Member

    Joined:
    Dec 7, 2002
    Location:
    New Zealand
    #15
    .html is the "correct" extension.
    .htm is a Microsoft version of it, because DOS could only handle 3-letter extensions.
     
  16. oldschool thread starter macrumors 65816

    oldschool

    Joined:
    Sep 30, 2003
  17. Stike macrumors 65816

    Stike

    Joined:
    Jan 31, 2002
    Location:
    Germany
    #17
    I have a problem concerning this. I set up my no-ip account and have set my site, but then again, if I enter the redirection, it redirects to the Apache site and not the User-Sites. How can I add the /(strangeSymbolhere)User/ to my redirection?
    Where? I can´t find it...
     
  18. magid macrumors 6502

    magid

    Joined:
    Jan 6, 2003
    #18
    i too signed up with no-ip.com i cannot get it to work. I have an router that is connected to my basestation. I downloaded the updater client, but things still are not working. please help
     
  19. varmit macrumors 68000

    varmit

    Joined:
    Aug 5, 2003
    #19
    Here is what you do

    You need to set up the port forwarding on your router and basestation. When someone comes to your site as it is right now, it reaches the router but the router acts as a natural firewall, because the router doesn't know who to forward the request too. So open up port 80 to foward along and see if it works.
     
  20. magid macrumors 6502

    magid

    Joined:
    Jan 6, 2003
    #20
    i setup the port foward thing with no-ip.com but it still just goes to the router. how do i get it past it?
     
  21. superfunkomatic macrumors regular

    Joined:
    Jan 6, 2003
    Location:
    calgary, ab canada
    #21
    for setting up your router - your router's admin area should allow you to forward port 80 to a specific IP address on your local network. that way any requests that get to your firewall are filtered and only requests for web materials on port 80 will be forwarded to that machine. the admin's are slightly different depending on your router - should be a port forwarding area or possibly a gaming port area.

    for targeting your site - if you put files (html and such) into your main library folder at the path - library/webserver/documents it will show up for your domain mydomain.com, if you put the files in your user public folder it will show up at mydomain.com/~username.

    check out information about configuring your httpd.conf file online, or virtual hosts if you want to target different sites to the different directories - apache will do all the redirection for you.
     

Share This Page