LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-17-2003, 05:07 PM   #1
r4merlin
LQ Newbie
 
Registered: Nov 2002
Distribution: Redhat 9
Posts: 24

Rep: Reputation: 15
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.
 
Old 02-17-2003, 05:09 PM   #2
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
 
Old 02-17-2003, 05:13 PM   #3
r4merlin
LQ Newbie
 
Registered: Nov 2002
Distribution: Redhat 9
Posts: 24

Original Poster
Rep: Reputation: 15
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.
 
Old 02-17-2003, 05:16 PM   #4
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
 
Old 02-17-2003, 05:23 PM   #5
r4merlin
LQ Newbie
 
Registered: Nov 2002
Distribution: Redhat 9
Posts: 24

Original Poster
Rep: Reputation: 15
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.
 
Old 02-17-2003, 05:41 PM   #6
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
 
Old 02-17-2003, 05:47 PM   #7
r4merlin
LQ Newbie
 
Registered: Nov 2002
Distribution: Redhat 9
Posts: 24

Original Poster
Rep: Reputation: 15
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)
 
Old 02-17-2003, 05:51 PM   #8
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
 
Old 02-17-2003, 07:04 PM   #9
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
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.
 
Old 02-17-2003, 07:06 PM   #10
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
 
Old 02-17-2003, 07:13 PM   #11
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache + where to place web pages?? blizunt7 Fedora 6 06-01-2005 03:27 PM
how to add web pages in apache webserver gajaykrishnan Linux - Networking 2 02-09-2005 12:55 AM
ADSL Router Web configuration pages appears instead of Personal Web Server Pages procyon Linux - Networking 4 12-20-2004 05:44 PM
I installed java plugins and flash in mozilla 1.6 but still cant view web pages themask_4 Linux - Newbie 3 04-27-2004 11:21 PM
Question about Multiple web pages in apache SSBN Linux - Networking 10 05-01-2003 10:18 AM


All times are GMT -5. The time now is 04:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration