[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Subdomain in browser-line after redirect
- Subject: Re: [cobalt-users] Subdomain in browser-line after redirect
- From: "Aeron." <ajarrett@xxxxxxxxxxxxx>
- Date: Thu Oct 11 08:56:03 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On Thu, 11 Oct 2001, Mevers wrote:
|
|Hi,
|
|Can anyone help me with the following problem,
|I have read all of the post about this problem.
|I even had contact with Cobalt themself.
|But also it still does not work.
|
|What I try to do is this:
|
|On a cobalt Raq4 I have a virtual site. say -> domain.com
|I create a subdomain in the DNS -> page.domain.com
|I forward the page.domain.com to www.domain.com/page
|
|When I go to page.domain.com in my webbrowser, the raq4 translates the
|url into www.domain.com/page
|
|What I want is that the original subdomain stays in the browser line.
|
|I tried to turn the canonial names to on/off, does not work
|I tried to comment the rewrite rule in httpd.conf, does not work
|I spoke to cobalt, and I don't think they know.
|
|Any sugestions on this problem will be verry welcom.
|
|Richard van der Meulen
You could do this by going into httpd.conf and editing the documentroot
for the site to be the page directory below the documentroot for the main
site
the following is a mocked up portion of the httpd.conf virtual host block
for the main domain:
DomainName www.mydomain.com
DomainAlias mydomain.com
DocumentRoot /home/sites/www.mydomain.com/web
.
.
.
then this is the mocked up virtual host block for the sub domain:
DomainName pages.mydomain.com
DocumentRoot /home/sites/www.mydomain.com/web/pages
#the above originally was /home/sites/pages.mydomain.com/web
.
.
.
***NOTE: I haven't done this before. This is brainstorming. But it sounds
logical to me. Some people might say that manual edidting of the
httpd.conf will be overwritten by the server... I don't know about that.
But, to protect against that, you can put the virtual host in a separate
file and include it into the httpd.conf via a directive like the
following:
Include /etc/httpd/conf/pages_mydomain_com.conf
I'd put that near the block for the mydomain.com host, but that shouldn't
matter.