On Fri, 13 Aug 2004, hcohen2 wrote:
Chris Devers wrote:
OK, my problem is that the attempt to connect using 127.0.0.1 gets a message something like connection refused by the server.
Is there some location in the httpd.conf file to list an acceptable client?
Is the web server running on your desktop? Yes or no?
Yes, it's on this machine I am writing from.
Ok, that changes things.
So then, this is Apache? Running on ...Linux? OSX? Windows? Other?
I am sure the server is running, but typing in the ip address keeps getting me a connection refused message. Hence, I think somewhere I need to make myself an acceptable client.
Well, maybe. Maybe not.
The first thing to do is figure out if your web server is up, running, listening, and responding. If you're sure that the server process is running -- and knowing the server & operating system will help a lot in steering you along here -- then there are various ways you can try to figure out if the server is actually listening.
If you're on an operating system with a command line, try this (the lines you type will have a "->" prefix):
-> telnet localhost 8080 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. -> GIBBERISH <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML><HEAD> <TITLE>501 Method Not Implemented</TITLE> </HEAD><BODY> <H1>Method Not Implemented</H1> GIBBERISH to / not supported.<P> Invalid method in request GIBBERISH<P> <HR> <ADDRESS>Apache/1.3.29 Server at shabadoo.revahertz.com Port 8080</ADDRESS> </BODY></HTML> Connection closed by foreign host.
If you do the `telnet locahost $port`, you should be able to manually open up a conversation with your web server. Normally you'd want to issue an actual HTTP command here, but we're just testing that the thing is even alive, so in this example I just typed "gibberish" and -- as expected -- I got an error that Apache doesn't know what to do with a "gibberish" request. That's okay though, because it confirms that Apache is alive and listening. We can go other directions once we know that.
-- Chris Devers
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>