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

[cobalt-users] [RaQ550] DNS config: Domain accessible without www



(NB this is for a RaQ4)
If you want a virtual site without the 'www' in front, create it like you
would a normal site, except as email server + web server alias fill in
"domain.ext" as well.
Then you need to ssh in to the machine, and in /home/sites/ add a link to
domain.ext (ln -s /home/sites/siteXX /home/sites/domain.ext)
edit /etc/httpd/conf/httpd.conf
and change the following:

RewriteCond %{HTTP_HOST}                !^domain.ext(:80)?$
RewriteRule ^/(.*)                      http://domain.ext/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/domain.ext/users/$1/web/$3

(there should have been a 'www' before 'domain.ext' or whatever you filled
in as 'host name' in the administrator)

Then you need to do the same for the sitemanager
ln -s /usr/admserv/html/.cobalt/siteManage/siteXX
/usr/admserv/html/.cobalt/siteManage/domain.ext

(don't need to edit the /etc/admserv/conf/httpd.conf!)

As far as I remember you don't need to change anything in the mail aliases
database...

Best regards,
Robin Edgar
Tripany

----------------------
Quoted:


Subject: [cobalt-users] [RaQ550] DNS config: Domain accessible without www
Reply-To: cobalt-users@xxxxxxxxxxxxxxx

Hiya,

I've been trying to make my domains accessible even without the www in
front of it. Normally when I want to do this I just make an extra A
record with the domain name and point it to the same IP coz my virtual
host has an alias.

But on the 550 when I create an A record without www in front of it it
gives me the following error:

"An identical domain name record already exists"

WTF?? Ping to domain.nl gives no reply and no IP ping www.domain.nl
gives me a reply.

My conclusion is that I need to make it an A record but the
administration page won't let me.

I'll paste one of the zone files here.

; db.domain.nl
;
; This file was automatically generated by dns_generate.pl.  Do not
; edit this file directly.  If you need to make additions to this
; file that CCE does not support, add your extra records to the
; db.domain.nl.include file.

$TTL 86400
domain.nl. IN SOA ns1.ourhost.nl. admin.ns1.ourhost.nl. (
        1032339181 ; serial number
        10800 ; refresh
        3600 ; retry
        604800 ; expire
        86400 ; ttl
        )
domain.nl.      IN      NS      ns1.ourhost.nl.
domain.nl.      IN      NS      ns2.ourhost.nl.

www.domain.nl.  in a xx.xx.xxx.xxx
mail.domain.nl. in a xx.xx.xxx.xxx
www.domain.nl.  in mx 20 mail.domain.nl.
domain.nl.      in mx 20 mail.domain.nl.

; User customizations go in this include file:
$INCLUDE db.domain.nl.include