On Tue, Apr 29, 2008 at 7:36 AM, Deepan <[EMAIL PROTECTED]> wrote: > I am serving two domains from the same machine > using Apache. I want www to be used in both of the > domains, hence I redirect urls without www to > appropriate urls with www. I have the following > configuration in httpd.conf to achieve this.
Unless www.domaina.com and domaina.com are pointing to different IPs in the DNS, here is a simple way to do this : ServerName www.domaina.com ServerAlias domaina.com *.domaina.com from http://httpd.apache.org/docs/2.2/mod/core.html#serveralias Regards, -- Shyam Mani | http://xinetd.accosted.net/ Gentoo Dev | http://dev.gentoo.org/~fox2mike Email | [EMAIL PROTECTED] GPG Key | 0xFDD0E345 _______________________________________________ Slugnet mailing list [email protected] http://wiki.lugs.org.sg/LugsMailingListFaq http://www.lugs.org.sg/mailman/listinfo/slugnet
