LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
wget 404


when i wget aro2220.com it displays
--2011-03-02 16:35:58-- http://aro2220.com/
Resolving aro2220.com... 127.0.1.1
Connecting to aro2220.com|127.0.1.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 177 [text/html]
Saving to: 'index.html'
100%
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 Aro2220.com 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, 03:46 PM   #2
kuyalfinator
Member
 
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, 03:48 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 09:54 AM   #4
Aro2220
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 aro2220.com as my domain and so it set it to 127.0.1.1 in hosts.

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

Thanks for the help!
 
  


Reply



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 06:42 AM
wget proxy error 404 cannedman Linux - Newbie 1 08-24-2009 05:08 PM
wget 404 error BarryM45 Linux - General 2 10-12-2004 05:12 AM
wget gives me 404 when IE works just fine...? ivj Linux - Software 7 07-24-2004 10:13 PM
(404)error johncla Linux - Networking 1 03-25-2001 06:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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