[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Special DNS or Alias question....



Hi all,

Who can help me with this one.....! :-)

Lets say somebody registers a domain whatever.com , we provide it through
our nameservers but he wants to use the space he gets free from his ISP
which is something like http://users.isp.com/his-site/
What would be the best way to redirect whatever.com to this site....?
Is there a way to do this directly through the DNS server?

Made some solutions myself but need to know if there is a quicker and better
way....

First solution, I pointed them all to 1 IP on my server and put all these
domains as aliases for this IP, here I run a script which reads the URL,
searches through a database and than calls the site
http://users.isp.com/his-site/ in a frame..... This worked for the majority
of sites but gave me some problems with older browsers which didn't support
frames (yes they are still around...).

Now I did something completely new, I put something like this in the
httpd.conf

<VirtualHost xxx.xxx.xxx.xxx>
ServerName whatever.com
DocumentRoot http://whatever.com
ErrorDocument 404 http://users.isp.com/his-site/
</VirtualHost>

And this works too of course.... :-)

So anybody a better suggestion?

Thanks, Nick