LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   public apache servers (https://www.linuxquestions.org/questions/linux-software-2/public-apache-servers-158445/)

TheHunted 03-16-2004 10:53 AM

public apache servers
 
Right now I have an apache server I connect to by typing 192.168.1.100 (so I am behind a router). How would I let people on the outside connect to my server using my real IP address The server is not on the computer thats directly connected to the router, that shouldn't be a problem.

Is there anything I need to do to allow this? Because right now the request times out. Thanks.

trickykid 03-16-2004 10:58 AM

Forward port 80 from the router to your internal server and its IP address.

coolamit78 03-16-2004 02:03 PM

Hi..!

Many a times, I've come across a line bit similar to this one on LQ...
Quote:

Forward port 80 from the router to your internal server and its IP address.
Which are the files that I would need to modify and how exactly is this port forwarding done ?... I'm not aware of how to go about forwarding a particular port to a machine on the LAN..so, I'd appreciate if you could provide some more details about the exact procedure...

Thanx & Regards,

amit

Drogo 03-16-2004 02:23 PM

You need to change the settings on your router thru your browser.

Example: lots of routers have a default address like

http://192.168.1.0

Read your documentation for your router.

trickykid 03-16-2004 02:49 PM

Quote:

Originally posted by Drogo
Read your documentation for your router.
That is exactly the case and well, as there are many types of routers out there, the first thing you need to do is simply that..

Cheers.

uslic001 03-16-2004 02:53 PM

different for each router
 
Instructions on how to do port forwarding are hard to give since each brand of router has a different way of doing this. As outlined above many routers allow you to access a configuration screen by using your browser to go to the gateway, which is located at http://192.168.1.1/ for my router.

My router is a Linksys and there is a tab for port forwarding on the configuration screen. From there you put in what port you want to forward and to what IP address you want the port forwarded, usually 192.168.1.100 if only one computer is hooked to the router.

Good luck.

coolamit78 03-17-2004 10:38 AM

Well...I guess you are talking about third party routers or may be hardware routers ( which are especially developed to function as a router )..for example, cisco, dell, linksys...

However, I asked that question with regard to a linux machine configured as router..I can configure my linux box as a router by adding a virtual interface (eth0:1)...In that scenario, how will I forward port 80 from the router to the internal apache server?


All times are GMT -5. The time now is 05:26 AM.