You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nathan Huang <na...@gmail.com> on 2009/04/12 14:12:04 UTC

[users@httpd] Can't access apache serverrom a remote computer

Hi Who can help me to figure out what problem I have with my apache
server, 
I am using fedora 10, and installed LAMP in my computer yestoday, I can
access my apache server from my own computer , I typed
'http://localhost/index.php', and when I typed
http://192.168.2.100/index.php' it is also ok, However when I tried to
access the apache server from my another computer from ieexplorer typing
http://192.168.2.100/index.php'  it can't open phpinfo(0 page, 
Please tell me how to config my apache server so as to access it from
remote computer. 
thanks
nathan


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Can't access apache serverrom a remote computer

Posted by André Warnier <aw...@ice-sa.com>.
Nathan Huang wrote:
[...]

> Yeah, you are right, something is blocking 80 port. I think maybe there
> are some problem with iptables, 
> I write in terminal ' echo '-A RH-Firwall-1-INPUT -m state --state NEW
> -m tcp -p tcp --dport 80 -j ACCEPT >> /etc/sysconfig/iptables'
> but when I restart iptables: /sbin/service iptables restart'
> error happens: "iptables: Applying firewall rules: iptable-restore: line
> 15 failed'
> line 15 is the line I added to iptable.
> Andre Thank you for you help, can you tell me what's happening.
> 
No, I'm sorry, this is not my area of expertise.
You may have more luck on a Linux forum for that one.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Can't access apache serverrom a remote computer

Posted by André Warnier <aw...@ice-sa.com>.
Nathan Huang wrote:
> Hi Who can help me to figure out what problem I have with my apache
> server, 
> I am using fedora 10, and installed LAMP in my computer yestoday, I can
> access my apache server from my own computer , I typed
> 'http://localhost/index.php', and when I typed
> http://192.168.2.100/index.php' it is also ok, However when I tried to
> access the apache server from my another computer from ieexplorer typing
> http://192.168.2.100/index.php'  it can't open phpinfo(0 page, 
> Please tell me how to config my apache server so as to access it from
> remote computer. 

That is probably not an Apache problem.  If Apache responds correctly 
when called from the same computer, then Apache is fine.

Your problem is probably that something is blocking accesses to the port 
80 of your computer, when trying to access it from another computer.
Check the firewall settings for example, or SELinux, or /etc/hosts.deny 
or whatever may be in the way.

 From the other computer, try the following :
- open a command window
- type "ping 192.168.2.100"
   Does that work ?
- if yes, then try "telnet 192.168.2.100 80"
   Does that work, or do you get an error ?


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org