AW: map a hostname to a subdirectory?
stefan.peer at tiwag.at
Mon Oct 1 15:12:38 UTC 2001
you got something wrong there: bind matches names and ip-addresses. this has
nothing what so ever to do with filesystems or any other os-specific or
if you want to host some domains and provide one http-daemon for all
domains, you have to use CNAMES and virtual hosts (at least with apache).
check this httpd.conf:
ok, www.internal.domain, www.other.internal.domain and internal.domain and
other.internal.domain have to be CNAMES or A-records pointing to
Von: henkehus at hotmail.com [mailto:henkehus at hotmail.com]
Gesendet: Montag, 01. Oktober 2001 16:55
An: comp-protocols-dns-bind at moderators.isc.org
Betreff: map a hostname to a subdirectory?
Is it possible with BIND to map a host name to a subdirectory on
another host, not just to an IP?
I would like someserver.somedomain.com to map to
I could to this with a redirect through a CGI script instead, but then
I would have to use URL:s like
http://someserver.somedomain.com?/mypath/myfile.htm to access a
certain file, I would like this file to be accessible through
http://someserver.somedomain.com/mypath/myfile.htm, even though it's
actually at 184.108.40.206/some_sub_directory/mypath/myfile.htm.
Any ideas? Could I maybe configure this in Apache instead?
More information about the bind-users