LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   wget 404 (https://www.linuxquestions.org/questions/linux-newbie-8/wget-404-a-866066/)

Aro2220 03-02-2011 03:39 PM

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?

kuyalfinator 03-02-2011 03:46 PM

wget uses http and if a file is not found, a 404 error is given.

acid_kewpie 03-02-2011 03:48 PM

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?

Aro2220 03-03-2011 09:54 AM

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!


All times are GMT -5. The time now is 03:34 PM.