[plug] question re: virtualhost in Apache

Tony Breeds magni at plug.linux.org.au
Wed Nov 19 17:17:44 WST 2003


On Wed, Nov 19, 2003 at 05:30:12PM +0800, Jon  Miller wrote:
> I've got a virtual host setting for a client where the servername is
> the www.servername.com.au. This points to the correct server where the
> clients web pages are stored.  If a user types in servername.com.au
> they do not get redirected to www.servername.com.au.  The ISP has
> confirmed that there is an entry (A record) for servername.com.au
> pointing to the main router.  Do I have to create another VirtualHost
> entry in the /etc/httpd/conf/httpd.conf for servername.com.au?

You need.

<VirtualHost *>
	ServerName    servername.com.au
	ServerAlias *.servername.com.au
	...
	...
</VirtualHost>

Or similar.

Yours Tony

        Linux.Conf.AU       http://conf.linux.org.au/
        Jan 12-17 2004      The Australian Linux Technical Conference!
_______________________________________________
plug mailing list
plug at plug.linux.org.au
http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug


More information about the plug mailing list