View Full Version : apache help
07-27-03, 11:38 AM
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 184.108.40.206 if that helps. Let me know what other information you guys need or suggestions that you may have. Thanks
07-27-03, 12:27 PM
Looks like you're not allowing access to the port on which httpd is listening:
Interesting ports on alb-24-194-100-49.nycap.rr.com (220.127.116.11):
Port State Service
80/tcp filtered http
Unless you changed the port from the default in httpd.conf.
about a 1/4 way down in your conf.. you have an area that looks like this
# Port: The port to which the standalone server listens. For
# ports < 1023, you will need httpd to be run as root initially.
whats it say?
07-27-03, 01:20 PM
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.
07-27-03, 03:01 PM
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>
# 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)
07-27-03, 04:32 PM
i am pretty sure 1.3
07-27-03, 05:18 PM
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,
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?
07-27-03, 05:36 PM
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?
07-27-03, 11:56 PM
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 18.104.22.168 or are the other machines behind this IP using NAT/router? Are you running a firewall or using a router at all?
07-29-03, 03:27 PM
Hmm, any other ideas?
07-29-03, 04:02 PM
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
does it work?
Do you have port 80 forwarded to the linux box if for example using a linksys router?
07-29-03, 04:57 PM
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://22.214.171.124 from my windows box
07-29-03, 07:35 PM
hub - - - - - - - firewall - - - - - hub
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?
07-29-03, 07:46 PM
I have 3 ips, haven't checked the firewall log yet
07-29-03, 07:52 PM
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.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.