[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] URL show in browser ?!?!
- Subject: Re: [cobalt-users] URL show in browser ?!?!
- From: Jeff Lovell <jlovell@xxxxxxxxxx>
- Date: Wed Jan 10 09:25:08 2001
- Organization: Cobalt Networks, Inc.
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On Tue, 09 Jan 2001, Jeff Lasman wrote:
> > I have create a virtual site named "is1.domain.com". and i have an DNS
> > record of "www.domain.com" pointing to the same IP.
> > When i type "www.domain.com" at the browser. The URL will changed to
> > "is1.domain.com" when connect to the web page.
> > Can i configure RaQ4 to display "www.domain.com" at the browser instead of
> > changing it to "is1.domain.com" ? THX
>
> If you want the site to work for either and not change the URL in your
> browser, then you can edit /etc/httpd/conf/httpd.conf for the domain,
> and comment out or change the lines beginning with the word "Rewrite".
> However if you just comment them out, then siteadmin and useradmin won't
> work any longer.
There is another way to solve the above problem as well. Apache
has a directive called "UseCanonicalName" that will cause the server
to use ServerName variable to reconstruct the URL when there are
self-referencing URLs.
Around like 199 of the global http.conf (/etc/httpd/conf/httpd.conf),
you can set the UseCanonicalName to off.
For more info see:
http://httpd.apache.org/docs/mod/core.html#usecanonicalname
HTH
Jeff
--
Jeff Lovell
Sun Microsystems
Server Appliance Business Unit