Notices

Overclockers Forums > Software > Alternative Operating Systems
Alternative Operating Systems Linux, Mac, Unix Operating Systems and Applications
Forum Jump

apache help

Post Reply New Thread Subscribe Search this Thread
 
 
Thread Tools
Old 07-27-03, 11:38 AM Thread Starter   #1
Pfieffdog
Registered



Join Date: Oct 2002

 
Exclamation apache help


I have been trying to get apache running on my linux box for some time now. I thought that I had all of the settings correct, but I guess not. What is happening is that I can see items from the html folder on the local machine(http://localhost/index.html) but when I try to view it from another machine, it doesn't show up. Apache is running fine and I am using mainly the default settings. My ip is 24.194.100.49 if that helps. Let me know what other information you guys need or suggestions that you may have. Thanks
Pfieffdog is offline   QUOTE Thanks
Old 07-27-03, 12:27 PM   #2
Cúchulainn
Member

 
Cúchulainn's Avatar 

Join Date: Sep 2002
Location: CO

 
Looks like you're not allowing access to the port on which httpd is listening:
Code:
Interesting ports on alb-24-194-100-49.nycap.rr.com (24.194.100.49):
Port       State       Service
80/tcp     filtered    http
Unless you changed the port from the default in httpd.conf.

__________________
Heatware
Cúchulainn is offline   QUOTE Thanks
Old 07-27-03, 01:13 PM   #3
Kaneda
Member

 
Kaneda's Avatar 

Join Date: Dec 2001

 
about a 1/4 way down in your conf.. you have an area that looks like this

Quote:
# Port: The port to which the standalone server listens. For
# ports < 1023, you will need httpd to be run as root initially.
#
Port 80
whats it say?
Kaneda is offline   QUOTE Thanks
Old 07-27-03, 01:20 PM   #4
Titan386
Senior Member

 
Titan386's Avatar 

Join Date: Jun 2002

 
Also, be aware that many home ISPs block traffic on port 80 (some even on 8080 as well). If that is the case with your ISP, you will have to use a non-standard port for the server.
Titan386 is offline   QUOTE Thanks
Old 07-27-03, 03:01 PM Thread Starter   #5
Pfieffdog
Registered



Join Date: Oct 2002

 
This is part way down the page and is the only thing i see that is talking about ports. could someone elaborate a little bit more or as to why I don't see it in my config file?? I can access webmin at the port it's on no problem. Thanks in advance.

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen *:80
Listen *:443
Pfieffdog is offline   QUOTE Thanks
Old 07-27-03, 03:41 PM   #6
Kaneda
Member

 
Kaneda's Avatar 

Join Date: Dec 2001

 
what version apache
Kaneda is offline   QUOTE Thanks
Old 07-27-03, 04:32 PM Thread Starter   #7
Pfieffdog
Registered



Join Date: Oct 2002

 
i am pretty sure 1.3
Pfieffdog is offline   QUOTE Thanks
Old 07-27-03, 05:18 PM   #8
Cúchulainn
Member

 
Cúchulainn's Avatar 

Join Date: Sep 2002
Location: CO

 
The port line is standard in 1.3 as far as I know. Look for "### Section 2: 'Main' server configuration". Should be the first option after that. If it isn't there just add it. Listen is for specific IPs (though I think it should still work) and unless you have multiple network interfaces the Port option should suffice. You do get the,
Quote:
If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page.
line when you just type in "localhost" on your browser, right?

__________________
Heatware
Cúchulainn is offline   QUOTE Thanks
Old 07-27-03, 05:36 PM Thread Starter   #9
Pfieffdog
Registered



Join Date: Oct 2002

 
When I type in localhost from the machine, the index page comes up that i have in the html directory.

Under the main server configuration section, I added that port 80 section that was listed above and still no luck. Any other ideas or questions you have about the setup?
Pfieffdog is offline   QUOTE Thanks
Old 07-27-03, 11:56 PM   #10
Cúchulainn
Member

 
Cúchulainn's Avatar 

Join Date: Sep 2002
Location: CO

 
Hmm, as Titan mentioned, there are ISPs that do not allow inbound traffic period, regardless of port. Around where I am many ISPs require you get a business class connection for that so I had to look around for a while. When you say you've tried to access the server from other machines, were you going through 24.194.100.49 or are the other machines behind this IP using NAT/router? Are you running a firewall or using a router at all?

__________________
Heatware
Cúchulainn is offline   QUOTE Thanks
Old 07-29-03, 03:27 PM Thread Starter   #11
Pfieffdog
Registered



Join Date: Oct 2002

 
Hmm, any other ideas?
Pfieffdog is offline   QUOTE Thanks
Old 07-29-03, 04:02 PM   #12
anvil82
Member

 
anvil82's Avatar 

Join Date: Apr 2003
Location: New Jersey

 
If you try to access it on another machine in the same network does it work?

Like for example if you rlinux box ip is 192.168.1.125, and you try to access it using

http://192.168.1.125

does it work?

Do you have port 80 forwarded to the linux box if for example using a linksys router?

__________________
Heat
anvil82 is offline Heatware Profile   QUOTE Thanks
Old 07-29-03, 04:57 PM Thread Starter   #13
Pfieffdog
Registered



Join Date: Oct 2002

 
the network is setup as follows, goes from the cable modem to a hub, then to my linux box, and from the hub also goes to a firewall, from the firewall, it goes to another hub, which has my windows box off of it. I can't hit the linux box by http://24.194.100.49 from my windows box
Pfieffdog is offline   QUOTE Thanks
Old 07-29-03, 07:35 PM   #14
Cúchulainn
Member

 
Cúchulainn's Avatar 

Join Date: Sep 2002
Location: CO

 
Like this?
Code:
                  WAN
                   |
                 modem
                   |
                  hub - - - - - - - firewall - - - - - hub
                   |                                    |
              linux/httpd                            windows
If you only have one IP, what is forwarding port 80 to the correct machine? Or do you have several IPs? Have you checked your firewall logs?

__________________
Heatware
Cúchulainn is offline   QUOTE Thanks
Old 07-29-03, 07:46 PM Thread Starter   #15
Pfieffdog
Registered



Join Date: Oct 2002

 
I have 3 ips, haven't checked the firewall log yet
Pfieffdog is offline   QUOTE Thanks
Old 07-29-03, 07:52 PM   #16
Richard
Senior Member

 
Richard's Avatar 

Join Date: Jan 2001

10 Year Badge
 
Sounds like you should do a little reading on configuring DNS. Then set your http port to something like 8888 or maybe even using https.

http://www.ibiblio.org/pub/Linux/doc...TO-html.tar.gz

__________________
Cookie!

Treat others as you want to be treated.
Richard is offline   QUOTE Thanks

Post Reply New Thread Subscribe


Overclockers Forums > Software > Alternative Operating Systems
Alternative Operating Systems Linux, Mac, Unix Operating Systems and Applications
Forum Jump

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Mobile Skin
All times are GMT -5. The time now is 11:08 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
You can add these icons by updating your profile information to include your Heatware ID, Benching Profile ID or your Folding/SETI profile ID. Edit your profile!
X

Welcome to Overclockers.com

Create your username to jump into the discussion!

New members like you have made this the best community on the Internet since 1998!


(4 digit year)

Why Join Us?

  • Share experience
  • Max out your hardware
  • Best forum members anywhere
  • Customized forum experience

Already a member?