[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Domain redirect
- Subject: Re: [cobalt-users] Domain redirect
- From: Jim Popovitch <jimpop@xxxxxxxxx>
- Date: Wed Jun 20 01:37:26 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
You will need 2 sections to accomplish this. Something like this should
work: The second section is the workhorse that will rewrite anything
matching ServerAlias into the exact domain. This will cause the user's
browser to always display www.realdomain.net regarless of which domain
they entered. Of course, your apache install must support mod_rewrite
for this to work.
<VirtualHost www.realdomain.net>
ServerName www.realdomain.net
ServerAdmin postmaster@xxxxxxxxxxxxxx
DocumentRoot /home/site/html
ScriptAlias /cgi-bin/ "/home/site/cgi-bin/"
ErrorLog /home/logs/error_log
CustomLog /home/logs/access_log combined
</VirtualHost>
<VirtualHost www.fakedomain.net>
ServerAdmin postmaster@xxxxxxxxxxxxxx
ServerAlias *real* *fake*
Redirect permanent / http://www.realdomain.com
Redirect permanent /mailman http://lists.realdomain.com
</VirtualHost>
-Jim P.
--- "Rodolfo J. Paiz" <rpaiz@xxxxxxxxxxxxxx> wrote:
> At 6/19/01 11:55 PM -0400, you wrote:
> > > What if i do NOT want to create a virtual
> > > site for this specific domain record? Is there a way to do it?
> >
> >Well it depends on where you're sending the requests. If you're
> >sending them to a specific IP, you can do this with your DNS 'A'
> >record entries.
> >But if you want to send it to something like a Geocities URL, you'd
> be
> >better off making a virtual site (one meg will do) and doing a
> >redirect with either frames or an .htaccess file.
>
> Hey Carrie...
>
> You know this stuff better than I do, but: why not just use the
> "Redirect"
> directive in Apache? For example, whenever I have domain.com/net/org
> (all
> three), the first gets a virtual site and the other two get
> hand-added
> things in httpd.conf like:
>
> <VirtualHost www.domain.net>
> DomainAlias domain.net
> DomainAdmin postmaster@xxxxxxxxxx
> Redirect permanent http://www.domain.com
> </VirtualHost>
>
> and I'm done. Is nice enough to rewrite the address window while it's
> at it
> so the user has a chance to notice that he should always be going to
> domain.com anyway.
>
> Note to anyone: THOSE ARE NOT EXACT TEXTS AND PROBABLY WILL NOT WORK.
> It's
> vaguely what I remember, although I can go get the exact text if
> someone
> wants/needs it.
>
>
> --
> Rodolfo J. Paiz
> rpaiz@xxxxxxxxxxxxxx
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/