Jump to content


Photo

Running an Apache Server thruough a router.


  • Please log in to reply
2 replies to this topic

#1 haX80r

haX80r
  • New Members
  • Pip
  • Newbie
  • 1 posts
  • Location/dev/nul

Posted 06 September 2006 - 01:16 AM

Hello,
I have an apache server running on a fairly new Windows 2003 Server. My network is centered around a Linksys WRT54G router. I signed up for an account at DynDNS.org and I am running the dynamic DNS service on my server. However, whenever I go to the domain I have registered, I just get my router's HTTP setup page. My local network uses 192.168.1.x DHCP, provided by my central router. My server has a direct gigabit connection to my router. How do I run my web page server through my router? I am fairly new to this.

Thanks,
HaX80r
There are 10 Types of people. One type can read binary, the other can't.

#2 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 06 September 2006 - 01:35 AM

Are you set up in the following manner?

Cable comes into home -> Cable goes into modem -> Modem goes into router's WAN -> Computers go into other ports of router.

Once this is done, change your modem's setup to send requests on port 80 to your computer that is running the server, for example 192.168.1.x. Setup Apache to listen on this same internal IP, 192.168.1.x.
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/

#3 almcnicoll

almcnicoll
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 06 September 2006 - 11:16 AM

Just to add to effigy's comments, as you're new to this sort of thing, the relevant section of your router setup is probably called "port forwarding" or "virtual servers". You enter the incoming port or range of ports, then the machine you want it to route to, then the port on that machine that you want it to route to.

For instance, my FTP server is set up on local IP 192.168.2.4. The entry in "Virtual Servers" reads:
Port 21 -> 192.168.2.4 -> Port 21
and then my FTP server listens on port 21 (the usual for FTP)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users