Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

http server access problems

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have problems with Apache http server access from an external network. There's no problem with internal access. My server has a public IP. It should work but since we changed the machine, the problems started. I've checked httpd.conf, ifconfig, etc. and everything is OK. What is wrong??

Thanx a lot.
 
What IP are you using to access the http server? Also, on the network you have apache on, is port 80 being blocked? You may want to change the default port in apache from 80 to 8080 and see if that works. If it does then port 80 is being blocked.
 
Where do you have this network set up? Is this at home or work?

Many ISP block port 80 since the code red virus and have no intensions on opening it up again. You should call your ISP and ask if port 80 is open to outbound traffic. I found out that my dsl provider blocks port 80 and I had to switch my apache server to run on 8080.
 
I'm not sure that's the problem... My Apache runs on a Linux server and the ISP doesn't block this port...
Really puzzled :(
 
Here could be another problem.

Are you sharing your internet connection with the other computers on the network? If so, is it through a router? Is the router set to forward calls on port 80 to the IP of the machine that apache is running on?
 
The server is installed at work, so that's probably not the problem...
 
Hi,

If its a redhat 7.x server, then you may (inadvertently) be firewalling port 80 on the internet connex. Unless you do a custom install, you may well find that the 'lokkit' ipchains based firewall is active.

To admin that do as root:

/usr/sbin/lokkit

and follow gui screens to allow inbound http / port 80.

To see active firewall code do :

/sbin/ipchains -L
or
/sbin/iptables -L (2.4.x kernels)

Regards




 
ipchains shows the following...
my machine isn't visible yet (from an external network)!!
:(((((((((((((((



Chain input (policy ACCEPT):
target prot opt source destination ports
ACCEPT tcp -y---- anywhere anywhere any ->
http
ACCEPT tcp -y---- anywhere anywhere any ->
ftp
ACCEPT all ------ anywhere anywhere n/a
ACCEPT udp ------ amazonas.unired.net.pe anywhere domain
-> any
ACCEPT udp ------ urubamba.unired.net.pe anywhere domain
-> any
ACCEPT udp ------ manu.unired.net.pe anywhere domain -
> any
REJECT tcp -y---- anywhere anywhere any ->
any
REJECT udp ------ anywhere anywhere any ->
any
Chain forward (policy ACCEPT):
Chain output (policy ACCEPT):
 
The problem is solved. Thank you very much for your help...
It was because the machine has two IP's. Just gotta configurate the public IP as the first IP...

Thanx!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top