[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Web Forwarding - The next chapter!
- Subject: Re: [cobalt-users] Web Forwarding - The next chapter!
- From: Jeff Lasman <jblists@xxxxxxxxxxxxx>
- Date: Sat Jan 29 09:25:49 2000
My best guess is that a big piece of the problem is name-based hosting. If
both the old and new site are at the same IP#, then Apache is looking at
the request headers to see which site it's supposed to be looking
at. Unless you rewrite the headers on the request, apache will always send
it to the original site.
Nothing in DNS is going to work with name-based hosting; once the request
gets to Apache, Apache reads the header to see which website to serve.
If the ONE SITE you're redirecting to is IP-based and has it's own IP#, and
you redirect to that, it should work.
Otherwise each site will probably have to have it's own small space, with
code creating an invisible zero-space frame and calling on the
redirected-to site to fill the rest of the space in the browser window.
Of course I haven't tried any of this (no time); just thinking it out is all.
Jeff
At 03:03 AM 1/29/00 Owen Lees wrote:
Hi all..
Was wondering if we ever got to the bottom of the web redirection issue
that I was asking about?
To recap :-
I am hosting lots of sites on a name based virtual site basis.
I have been asked to register 40+ domains to our nameserver.
I dont really want to give them all sites on the Raq2 (waste of space),
but thought instead that I would make ONE site and redirect all the
requests for the other domains to this one site.
Ok - this is what I have tried so far:
1. Bunging a Redirect into httpd.conf
2. Putting CNAME's into the DNS server config along with the domain > ip A
record.
3. Putting CNAME's into the DNS server along with all the normal records.
4. Attempted to do a bungled redirect mask in the actual virtual server
record in httpd.conf
I am now thinking that maybe I should not be attempting to redirect a site
that is allready on the machine and that redirects should only be done
with domains that do not have a site on my box so as not to confuse apache.
However - this may be completely off track of course (grin) , I have had
lots of suggestions from you guys but we still seem to be off the mark a
little.. I am sure that this is perfectly feasable to do, and can't
beleieve that it may be a RAQ issue casusing the redirects not to work :)
--
Jeff Lasman, nobaloney.net
<jblists@xxxxxxxxxxxxx>
<www.nobaloney.net>, <www.mailtraqna.com>, <www.email-lists.com>