Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-02-2011, 04:39 PM   #1
LQ Newbie
Registered: Mar 2011
Posts: 7

Rep: Reputation: 0
wget 404

when i wget it displays
--2011-03-02 16:35:58--
Connecting to||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 177 [text/html]
Saving to: 'index.html'
2011-03-02 16:35:58 (12.4 MB/s) - 'index.html' saved [177/177]

However, when I look into the file it is actually blank saying something like "It works! This is the default web page for this server" which can't be correct since that is not what actually displays.

Furthermore, when I try to wget files I've put on the server for myself it returns a 404, file not found.

The ip it resolves for the server is also bad...any idea what is going on?
Old 03-02-2011, 04:46 PM   #2
Registered: Jul 2003
Location: Los Angeles
Distribution: RedHat8 2.4.18-14 RedHat9 2.4.20-8 FreeBSD 5.2.1 Ubuntu 10_4 Mandrake 2.4.21-0.13mdk
Posts: 118

Rep: Reputation: 16
wget uses http and if a file is not found, a 404 error is given.
Old 03-02-2011, 04:48 PM   #3
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
It sounds like you have apache set up with a virtual host that you are not hitting because if the odd ip.
If you look in /etc/hosts is that entry in there?
Old 03-03-2011, 10:54 AM   #4
LQ Newbie
Registered: Mar 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Hey, thanks for your help. When I set up my computer I put as my domain and so it set it to in hosts.

I removed the from etc/hosts and now I can wget files off my website again.

Thanks for the help!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 404 error when using wget to download pdf -- related to Save File popup jj3286 Linux - Software 1 10-16-2010 07:42 AM
wget proxy error 404 cannedman Linux - Newbie 1 08-24-2009 06:08 PM
wget 404 error BarryM45 Linux - General 2 10-12-2004 06:12 AM
wget gives me 404 when IE works just fine...? ivj Linux - Software 7 07-24-2004 11:13 PM
(404)error johncla Linux - Networking 1 03-25-2001 07:09 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration