On Sat, 30 Aug 2008 08:16:02 -0700 (PDT),
dp****@dpsims.com wrote:
I have noticed that some Domain Registrars seem to offer an
integrated
web referral service. For instance, in the registrar's DNS control
panel, you can set a link from a DNS name <foo.bar.comto a website
subdirectory like <http://cis.boom.org/foo>. Anyone have a clue how
this is done at the level of DNS?? I could imagine that you could
point a DNS name like foo.bar.com to a webserver where a 'referral'
snippet might exist as the index.html referring to http://cis.boom.org/foo
but I am not aware of any public domain programmatic way of doing
this.... Any clues or suggestions??
I'm not sure from your description whether you're talking about a redirect
or a proxy. In either case, you (or the company managing the domain) set
the A record for something.example.com to point to one of your (their)
servers.
For a proxy (something.example.com actually serves up the same content as
example.org/somewhere), you then have a record in the server configuration
that looks a little like this:
<VirtualHost *:80>
ServerName something.example.com
RewriteEngine On
RewriteRule ^(.*)$ http://www.example.org/somewhere$1 [P]
</VirtualHost>
For a redirect (something.example.com redirects to example.org/somewhere),
it's pretty similar, except you replace [P] with [R] and obtain the log of
redirects from a server log set up for that subdomain. Or you can rewrite
the request inernally to redirect through some custom script.
--
Safalra (Stephen Morley)
A Colour Picker Widget For javascript
:
http://www.safalra.com/web-design/ja...colour-picker/