[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Raq2: http domain access



On Tue, 13 Feb 2001, Katrin [iso-8859-1] Çappar wrote:

> Hi,
> 
> I would like to access my domains with http://domain.de
> By default it is just possible to access the domain with
> full url http://WWW.domain.de
> 
> How could I manage this? (It doesn't seem to be possible
> by webconfiguration)

Yes, the raq2 GUI doesn't like domain names with no hostname, dunno why...

If you are brave, and don't mind voiding the warrenty, you should be able
to do it by making a few changes to the server config..

Do not do this if you aren't comfoortable changing things by hand, and do
save a copy of the file before you edit it so you can put it back if
somethign goes wrong....

the file you need to change is /etc/httpd/conf/httpd.conf

Make a backup copy of this file!

Search down in this file till you find

ServerName www.domain.de
   take the www. out of this line

Then find: ServerAlias domain.de
   Add the www. to this domain (yes!)

a few lines more down find 
RewriteCond %{HTTP_HOST}  !^www.domain.de(:80)?$
  Take out the www. leave everythign else

Under it is:
RewriteRule ^/(.*)  http://www.domain.de/$1 [L,R]
Take the www. out of this line also

Save the file, restart the web server (type /etc/rc.d/init.d/httpd.init)
if you get no error messages you should be all done.

Note that you need the www.domain.de DNS info or your email won't work
properly...all the above is going to do is make the web server reverse
it's behavior of converting domain.de into www.domain.de, not it will
convert www.domain.de into domain.de

last but NOT least, you can never again use the web interface to change
the virtual site settings for this domain name (eg, hostname, IP
address) , if you do, the web interface will recreate this file and
replace your changes....

gsh