[Solved] wget connection refused on localhost
/usr/bin/wget -O - -d
When I run this, I get a "connection refused" message.
I do have an HTTP auth user/pass set up on the server, so I also tried this:
/usr/bin/wget -O - -d
but it doesn't work either. I have been Googleing and trying to find a way past this for a couple of hours. Any suggestions on how to troubleshoot this?
2 Replies
/usr/bin/wget -O - -d
@gregstout:
When I run this, I get a "connection refused" message.
Are you really getting "connection refused" instead of something like "401 Unauthorized"?
If so, it sounds like your web server is not listening on the localhost (127.0.0.1) IP address, which doesn't really have anything to do with HTTP authentication.
If you are running Apache, look in your config for a "BindAddress" or "Listen" directive. If you have a specific IP(s) listed there, then Apache will only listen on those IP(s).