On Sun, 2011-07-31 at 13:47 +1200, Cliff Pratt wrote: > On Sun, Jul 31, 2011 at 1:42 PM, Always Learning <centos at u6.u22.net> wrote: > > > > On Sat, 2011-07-30 at 16:49 -0700, John R Pierce wrote: > > > > > >> <VirtualHost 207.111.214.244> > >> ServerName astronomy.santa-cruz.ca.us > >> DocumentRoot /..../html > >> ErrorLog /...../logs/error_log > >> CustomLog /..../logs/access_log common > >> </VirtualHost> > >> > >> <VirtualHost 207.111.214.244> > >> ServerName astro.santa-cruz.ca.us > >> ServerAlias www.astronomy.santa-cruz.ca.us > >> www.astro.santa-cruz.ca.us > >> RedirectMatch permanent /(.*) http://astronomy.santa-cruz.ca.us/$1 > >> </VirtualHost> > > > > > > You can amalgamate that into a single entry ..... > > > > <VirtualHost astronomy.santa-cruz.ca.us:80 \ > > www.astronomy.santa-cruz.ca.us:80 \ > > astro.santa-cruz.ca.us:80 \ > > www.astro.santa-cruz.ca.us:80> > > DocumentRoot /data/web/astronomy > > ServerName astronomy.santa-cruz.ca.us > > CustomLog /data/logs/acc.astronomy combined > > ErrorLog /data/logs/err.astronomy > > DirectoryIndex main.php > > HostnameLookups Off > > </VirtualHost> > Or use ServerAlias (not tested). John used 'ServerAlias' and look at all the extra lines required. Don't forget the computer is supposed to work for the man (and woman) not vice versa ! -- With best regards, Paul. England, EU.