Personal web server + domain name

Discussion in 'Off Topic Area' started by Greg-VT, Apr 26, 2004.

  1. Greg-VT

    Greg-VT Peasant

    Hellooo.

    A fairly simple question really. Say I have a registered domain name, and a linux box (RH9) running as web server.

    Is it difficult to set it up so that the domain name refers all internet traffic to this linux box I have here?
     
  2. Nukie

    Nukie New Member

    Um.. in theory it sounds easy enough.. although to put this into practice i've no idea!

    Can't you assign your IP address with whoever you registered your domain name with? Or access the dns tables where your domain name is stored and update your computers IP?

    There are websites like this who will do it for a small charge but i'd imagine you can do it yourself for free.

    Also, have a look at http://www.dyndns.org and see what they've got to offer.
     
  3. Greg-VT

    Greg-VT Peasant

    Ahhh. I just remembered why I have a big "?" over this (I've tried doing it in the past).

    I have an ADSL modem/router, and I'm having trouble setting it up so inbound http connections refer to my web server. The model I have may not even be able to do it.

    I'll have to try looking up the features of it.


    Thanks for those suggestions Nukie.
     
  4. hongkongfuey

    hongkongfuey Kung Fu Geek

    what is the model of your router, VT? I assume you have a static IP address on your ADSL connection?
     
  5. Greg-VT

    Greg-VT Peasant

    It's just a cheapy.

    It's a NetComm NB1300. It does have a number of options available, such as port forwarding, routing etc. However whenever I try access the web server it gives me the logon for the modem. And yes, as far I know it is a static IP.
     
  6. hongkongfuey

    hongkongfuey Kung Fu Geek

    it looks like the router has it's own web server built in. Is it possible to assign this to a different port (other than port 80) or disable it as otherwise it will have no easy way of knowing that inbound http traffic needs to go to your PC.

    Either that, or use a different port for your web server. e.g. if your ip address was 1.2.3.4 and you used port 8001 you would access it on http://1.2.3.4:8001 - you would need to set this port number in apache as well though.

    hope this makes sense.
     
  7. hongkongfuey

    hongkongfuey Kung Fu Geek

  8. Greg-VT

    Greg-VT Peasant

    Yep, that's right.

    I have looked at that briefly. And from what I could tell, it didnt work. Although I did'nt really look into it long enough to really evaluate it. And I did test it from another PC on the same network (behind the router), and *I think* it gave me a "page not found" error.

    And then I would require to tell the domain host of the IP address including the port right? Might be an option. I'll try it out.
     
  9. Greg-VT

    Greg-VT Peasant

    LoL, VT ;)

    Thanks for the link, I just had skim through here, and looks pretty much the same as what I've tried in the past. Forward port 80 to the http server, and set modem http server to port 81. I'll try it again this afternoon once I'm home from work - with more attention to detail and time to run over the results.

    Thanks
     
  10. hongkongfuey

    hongkongfuey Kung Fu Geek

    I assume your Linux box is setup to receive requests on port 80, and is not firewalling them itself!
     
  11. Greg-VT

    Greg-VT Peasant

    Yes, it was, and no, I have no firewall setup on the linux box.

    I've now removed the linux box out of the equation. And setup a small server on my main machine for testing.

    Example, the server is on 192.168.1.10. The other computers on the network can see the server, but once I try using the outside IP address (such as 203.***.***.***), I get nothing.

    The server is setup on port 80. I've port forwarded 80 to 80 on 192.168.1.10, and changed the router's http port to 81.


    I just did a quick scan for open ports (http://scan.sygate.com), and it shows port 80 as being blocked. How that's happening... I have no Idea.


    Ah well. Thinking days ahead.


    EDIT: Ahhhh..... I think I just found what the problem is. My ISP blocks port 80.

    Excuse me... I'm going to go cry.

    But.. If run the server on another port, and someone points themselves to my IP, will it go to the webserver? Or must it be on port 80?
     
    Last edited: Apr 28, 2004
  12. hongkongfuey

    hongkongfuey Kung Fu Geek

    try connecting to the router on port 81 and see if you can see that. If you can, then put the router back to port 80, and forward port 81 to your linux box.

    http traffic will default to port 80, so you would need to put the port number into the address, e.g. www.martialartsplanet.com:81

    If this is not ideal, you could leave your domain where it is, and put a redirect page on it to redirect to your linux box on port 81. (although the address bar will then show the IP address, not the domain).

    Alternatively you could just swap to a decent ISP that doesnt block port 80!
     
  13. Greg-VT

    Greg-VT Peasant

    Might have to do.

    Thanks for your help.
     

Share This Page