title: http request fails to other computer of same network
body: <p>i am new in linux networking and apache server configuration.</p>
  
  <p>someone gave me two linux server under same vpn. Redhat is installed on them.</p>
  
  <p>those server has both internal ip and external ip. i mean external ip are forwarded to those internal ips. </p>
  
  <p>i have installed apache on those server and also uploaded php websites on them. so i can access website installed on those server from internet(from outside of the vpn) using their external ip.</p>
  
  <p>both server has hostname(i mean i get a local domain name by the hostname command)</p>
  
  <p>and also from ssh i can ping one another by both external ip and internal ip and that hostname.</p>
  
  <p>but from the php end of the installed website i can't access the website of one server from another server.</p>
  
  <p>i have tried with file_get_contents and curl to access websites. i have tried with both external ip and internal ip and hostname but all fail.</p>
  
  <p>i checked the both file_get_contents and curl and found those are working with other public websites like google dot com etc.</p>
  
  <p>but its not working only when i am trying access from one server to another on that vpn(i mean same network)</p>
  
  <p>can you please tell me what is the problem?</p>
  
  <p>is it apache configuration problem or vpn setup or ip forwarding problem? </p>
  
  <p>please help.</p>
  
  <p>Regards
  Al Amin</p>
  
  <p>===</p>
  
  <h1>edit</h1>
  
  <p><code>sudo netstat -tlpen</code> :</p>
  
  <pre><code>Proto Recv-Q Send-Q Local Address               Foreign Address             State       User       Inode      PID/Program name
  tcp        0      0 127.0.0.1:199               0.0.0.0:*                   LISTEN      0          615968     574/snmpd
  tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      27         1948058    3881/mysqld
  tcp        0      0 127.0.0.1:53                0.0.0.0:*                   LISTEN      25         3052927    6927/named
  tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      0          616002     586/sshd
  tcp        0      0 127.0.0.1:953               0.0.0.0:*                   LISTEN      25         3052932    6927/named
  tcp        0      0 :::80                       :::*                        LISTEN      0          3149386    7369/httpd
  tcp        0      0 ::1:53                      :::*                        LISTEN      25         3052929    6927/named
  tcp        0      0 :::22                       :::*                        LISTEN      0          616004     586/sshd
  tcp        0      0 ::1:953                     :::*                        LISTEN      25         3052933    6927/named
  </code></pre>