[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] [raq3]way to have sites like domain.com and no t www.domain.com
- Subject: RE: [cobalt-users] [raq3]way to have sites like domain.com and no t www.domain.com
- From: BSmith@xxxxxxxxxxx
- Date: Tue Jun 10 05:36:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
On Tue Jun 10, 2003 - 01:19:12PM, Kim Schulz wrote:
> > There should be an option "web access by domain" when you set up the
> > server or the defaults.
> > This should be the option you're looking for
>
> no because that only turns on the rewrite engine in apache and that only
> redirects domain.com to www.domain.com
> My problem is that I have domain.com on one server and www.domain.com on
> another (the raqs couldn't handle the high presure of the website on the
> domain, but mail etc. is still handled by the raq - just without the
> www.).
The easiest way to do is to remove the url rewrite stuff that cobalt puts
into their configuration files. If you open up /etc/httpd/conf/httpd.conf,
and scroll down (bottom) towards you virtual site, you will see stuff like
this:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^01.02.03.04(:80)?$
RewriteCond %{HTTP_HOST} !^host.domain.tld(:80)?$
RewriteRule ^/(.*) http://host.domain.tld/$1 [L,R]
RewriteOptions inherit
If you put a "#" in front of the lines, and then restart your daemon, it
will do what you want it to do, plus if you have multiple names for your
site. They will remain in the URL bar too :)
Brian