LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   View Apache web pages (https://www.linuxquestions.org/questions/linux-newbie-8/view-apache-web-pages-45878/)

r4merlin 02-17-2003 05:07 PM

View Apache web pages
 
Bit new to all this, how do i get the outside world to see my webpages created on apache. Apache is installed on my second PC. Primary machine is running XP where I can see the pages no problem, however I can not see them from any other computers. Any starting points greatly appreciated

I am running RH 7.3

If you need anymore info please let me know.

MasterC 02-17-2003 05:09 PM

If your second machine can see them... Wait.. How can your second machine see them? By going to: http://1.2.3.4/ and it works? Or what? If it's by going to http://192.168.1.50 (or whatever the IP is of your box with apache on it) then you probably need to configure your router (assuming you've got one) to show that as your http server. How is your network setup?

Cool

r4merlin 02-17-2003 05:13 PM

Both machines at home can see the pages. I have a hub not a router.

I type in http://hostname.mshome.net

to view on either machine.


Network setup is this

Primary Machine = Windows XP
Secondary Machine = Windows XP (primary drive switched off)
= Linux RH 7.3 (Slave drive currently on)

Connected via hub.

MasterC 02-17-2003 05:16 PM

So is the IP of the RH machine a dummy IP? Or is it something you actually recieved from your IP. I'm guessing dummy (easiest way IMO to setup the network you've got). So now, I am semi-green on networking so what's the huge difference between a hub and a router? If your hub has settings for port forwarding, you'll need to set that up to foward port 80 to the machine running apache. If your ISP has blocked port 80, you'll need to configure apache to run on another port (alot of people suggest 8080 or 8000) and then port forward that port to the apache box (RH).

Cool

r4merlin 02-17-2003 05:23 PM

The network just worked on Linux i did not have to configure anything the ip is a generic IP not provided by my ISP. I have no idea if my hub has port fowarding is there anyway I can check. As far as I know my ISP does not block port 80.

MasterC 02-17-2003 05:41 PM

Is there a configuration interface for your hub? For example, I have a Linksys BEFSR41 that I can connect to via any browser and configure to suit my needs.

What hub is it? Can you configure you hub with any software in winbloze (sometimes there is software, but it's only for win..)?

Cool

r4merlin 02-17-2003 05:47 PM

The hub is unbranded just works I have never had to configure it even for Windows. (I will dig out the box though and double check the info with it)

MasterC 02-17-2003 05:51 PM

Probably has DHCP setup then, and that's it. You may need to a. Setup a box to run IP masquerading (don't ask me, I just work here), and b. run as a router. You will need port forwarding to accomplish what you are asking. I don't know if there is another way around it (doubt it) but that's going to be the "standard" way. If your hub cannot do port forwarding, sad as it is to say, you are in for more than you bargained for (if anything).

Cool

Crashed_Again 02-17-2003 07:04 PM

Most hubs are not manageable(did I spell that right?) By that I mean there is no cool interface to go into to change settings around on it. When a request comes into your hub from the outside world the hub sends the request to every node connected to the hub(i.e. both your machines).

I think you have to find out the IP address of your cable router. I'm assuming your using a cable modem connection. If the IP address is lets say 99.99.99.99 then you would access your web page throught http://99.99.99.99 Because every request that comes into the hub is sent to every node its gonna hit your apache server and should serve up the page.

MasterC 02-17-2003 07:06 PM

Quote:

Originally posted by Crashed_Again
Most hubs are not manageable(did I spell that right?) By that I mean there is no cool interface to go into to change settings around on it. When a request comes into your hub from the outside world the hub sends the request to every node connected to the hub(i.e. both your machines).

I think you have to find out the IP address of your cable router. I'm assuming your using a cable modem connection. If the IP address is lets say 99.99.99.99 then you would access your web page throught http://99.99.99.99 Because every request that comes into the hub is sent to every node its gonna hit your apache server and should serve up the page.

Sweet, so it's like port forwarding for everyone, not 1 specific box? If that is so, what would happen if apache was running on both boxes when the IP was hit?

Cool

Crashed_Again 02-17-2003 07:13 PM

I have no clue. I always wondered how it handeled something like that. Thats why hubs are slower then router/switches. Every request gets sent to everything connected to it. Routers and switches are told where to send things.


All times are GMT -5. The time now is 06:09 AM.