internal Server Error 500

  • Tom the Great
  • Expert
  • Expert
  • User avatar
  • Posts: 727
  • Loc: B.C., Canada

Post 3+ Months Ago

I just set up an apache server on my red hat 7.1 system for fun. I am behind a router so I did the port forwarding of port 80 to the red hat computer.
The problem is, when I try to connect with other computers on the network using my 'outside' ip address I just get a http 500 error. When I try with the outside Ip address with the local machine I get
Quote:
Server Errror
The Following error occurred
[code=CANT_CONNECT_LOOPBACK] Cannot connect due to potential loopback problems

Please contact the administrator **(Which is me)


But on the local machine, when I use http://localhost or http://192.168.1.100 those work (but 192.168.1.100 won't work on a different comptuer on the network)

Anyone know how to fix this, or what I am doing wrong?
This is the first time using apache so I might have missed something.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

Well, forget for a moment the whole port forwarding, external access -- your immediate problem lies within the network; more to the point, on that system itself.

A 500 loopback error is usually associated with permissions set incorrectly, or malfunctioning -- perhaps through incorrectly set permissions -- any number of executables.

I would see if you can even connect to the machine from within your network, via telnet or ssh. You should try to telnet to port 80; see if you even connect. Then attempt to fetch content.
Do this after you connect by typing GET /<path to executable> HTTP/1.0
Return, Return.

Code: [ Select ]
shuriken# telnet shinpi 80
Trying 192.168.X.X...
Connected to shinpi.shinobi.
Escape character is '^]'.
GET / HTTP/1.0

HTTP/1.1 200 OK
Date: Sun, 28 Mar 2004 02:24:54 GMT
Server: Apache/1.3.27 (Unix)
Last-Modified: Thu, 29 Jan 2004 14:31:01 GMT
ETag: "9016e-62-40191925"
Accept-Ranges: bytes
Content-Length: 98
Connection: close
Content-Type: text/html

<html>
<head>
<title>Whatchu lookin at Willis?</title>

</head>
Bugger off.
</body>
</html>Connection closed by foreign host.
shuriken#
  1. shuriken# telnet shinpi 80
  2. Trying 192.168.X.X...
  3. Connected to shinpi.shinobi.
  4. Escape character is '^]'.
  5. GET / HTTP/1.0
  6. HTTP/1.1 200 OK
  7. Date: Sun, 28 Mar 2004 02:24:54 GMT
  8. Server: Apache/1.3.27 (Unix)
  9. Last-Modified: Thu, 29 Jan 2004 14:31:01 GMT
  10. ETag: "9016e-62-40191925"
  11. Accept-Ranges: bytes
  12. Content-Length: 98
  13. Connection: close
  14. Content-Type: text/html
  15. <html>
  16. <head>
  17. <title>Whatchu lookin at Willis?</title>
  18. </head>
  19. Bugger off.
  20. </body>
  21. </html>Connection closed by foreign host.
  22. shuriken#


As an example.

If you can connect to the box via ssh, but not via http (through telnet) then you are looking at server issue, most likely with execute perms.

Cheers.
  • Tom the Great
  • Expert
  • Expert
  • User avatar
  • Posts: 727
  • Loc: B.C., Canada

Post 3+ Months Ago

I can connect through SSH on a different system on the network fine, but I can't connect through telnet, or http, using the 192.168.1.100 address.

I haven't manually changed any permissions, I remember seeing a website saying the permissions you were supposed to change, but I can't remember what what I was supposed to change(and can't find the site again)

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 11 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.