Is it possible to set a ddns hostname to access a name-based virtual host?
Kevin Darcy
kcd at chrysler.com
Fri Feb 20 21:45:21 UTC 2009
Hongyi Zhao wrote:
> Hi all,
>
> Suppose a file named file.pdf stored in the following web location:
>
> http://some_domain/path/to/file.pdf
>
> Where, the *some_domain* is a name-based virtual host. In this case,
> is it possible to set a ddns hostname, say through
> http://www.changeip.net/, without using *some_domain* itself, to
> access this file?
>
>
DNS can only control what IP address the client connects to. It doesn't
have any effect on the "Host:" header that is sent in the HTTP request,
and that's what a webserver uses to identify the target site, in a
named-based virtual hosting context.
I think you want to use a proxy with URL-rewriting capability. SQUID
seems to be capable of this.
Possibly some browser add-on might have a URL-rewriting capability too,
haven't looked into that.
- Kevin
More information about the bind-users
mailing list