Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am trying to get a site mirroring with wget, and came across a strange behavior.

Say I am mirroring an internal site named in the following way, all seems to be working fine:

wget -mkE

However, as I need to access the server by IP and not domain name, I try with:

wget -mkE -D --header "Host:" http://IPv4_ADDR

But in this case, it only downloads the first page and exits.

any idea?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

When you use wget with http the only way it can determine what else is on the same site is via links in the retrieved pages. Depending on how those links have been created (absolute or relative), when you fetch via IP address the links may appear to wget to be external, in which case it won't follow them.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.