On Saturday 27 November 2004 17:55, [EMAIL PROTECTED] wrote:
> In the past we had the case where we needed to add web redirection services
> for some friends..
>
> I've been googling to find out some ways to do so.. found only one sf.net
> .. but wasn't satified with it.. as it would require not using vegadns
> anymore..
>
> So, one night, after long thoughs, i've decided to ask two friends to find
> a way to, at first, to design a script that would handle any calls to it,
> and redirect to the apropriate url, based on a simple file database.. Than,
> publish the script, and see if someone would be interested to add some
> "redirection" field to vegadns interface and database, that would only add
> the apropriate fields in the database of the targeted domain..
>
> After some tests, we came out with a pretty simple script, that uses (for
> the moment), a simple text file to figure "who goes where"..
>
> In my further examples, i'll be using this general idea:
> some.url.domain.com needs to point to
> www.some.isp.com/some/dir/some.file.html
>
> Also note, as pre-setup on my "main" company domain, i've created a generic
> alias that will be used as cname for any url needed to be redirected..
> Therefore: i made one Alias on my main domain like : redirect.mydom.com >
> alias > 192.168.0.11
>
> Than, in the zone of "domain.com", i created : record some.url.domain.com >
> cname > redirect.mydom.com
>
> The idea is that all redirections have to point to redirect.mydom.com.
>
> Now, the apache is setup on 192.168.0.11 :
> one spare ip for apache is needed, on my apache box, i'll use 192.168.0.11
> here, with a very basic vhost definition (provided below)
>
> ---cut---
> <VirtualHost 192.168.0.11:80>
>      DocumentRoot /home/system/redirect/docs
>     ErrorLog /home/system/redirect/logs/redirect-error_log
>     CustomLog /home/system/redirect/logs/redirect-access_log common
> </VirtualHost>
> ---end of cut---

Use the Apache Redirect directive in your virtual host definition
done

-- 
-----------------
Bob Hutchinson
Midwales dot com
-----------------

Reply via email to