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

Re: [cobalt-developers] one website two dns names



there is also a problem when you ad a ServerAlias into <VirtualHost
xxx.xxx.xxx.xxx> tag, Cobalt does redirection. for example:

<VirtualHost [ip]>
ServerName www.domain.com
ServerAlias www.domain2.com
....
</VirtualHost>

when you go to www.domain2.com, cobalt makes a redirection to
www.domain.com. on other computer [freebsd/apache 1.3.14] this feature
works [id est - typing www.domain2.com in your browser doesn't make
any redirections to www.domain.com].

this problem therefore is being fixed adding having 2 vhosts which are
pointing to same directory.

also. apache doesn't log to /home/sites/www.domain.com/logs/web.log.
only way to fix it is by adding manually

CustomLogs /home/sites/www.domain.com/logs/web.log common

hate this ;)

> I have a problem to add a second domain name to raq3 website.

> Main website www.foo.com = /home/sites/www.foo.com/web/ site...

> I also need the site to respond to  website www.foo.co.uk pointing to the 
> same dir path = /home/sites/www.foo.com/web/ site...

> in the DNS you have either two A records or CNAME one to the other..

> In the Cobalt GUI there is no way to add this feature.  Only way is to add 
> the details to .../httpd.conf by hand.

> Or is there another GUI way I have missed.

> Barry




> ---------------------------------------------------------------------------------------------------------- 

> Barry Titmarsh BMT1-RIPE           Nacamar Ltd (Sheringham Office)
>                                                    Knole House 38 Cromer Rd
>                                                    Sheringham Norfolk NR268RR
> e-mail: barry@xxxxxxxxxxxxxx      voice: +44-1263-821-844
> www: www.nacamar.net.uk           fax:    +44-1263-820-271
> ----------------------------------------------------------------------------------------------------------

> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers




-- 
lcz