[aklug] Re: Apache virtual host configuration

From: Joshua J. Kugler <joshua@eeinternet.com>
Date: Tue Aug 19 2008 - 08:34:21 AKDT

On Tuesday 19 August 2008, barsalou said something like:
> Quoting Richard Moore <dewey.moore@gmail.com>:
> > just another thought I thought I would mention that the server name
> > for example if you put www.example.com it will only listen for
> > www.example.comit will not look for anything else. if you want say
> > example.com you will have to copy the same configuration file and
> > take away the www.eample.com and put example.com in there instead
> > but leave everything else the same. having both will make it so
> > whoever is entering the address will get there because some people
> > use the www. and some people just the the http:// and some use
> > both..
> > Richard
>
> Couldn't you use ServerAlias (or something like that) in the
> configuration section?

Yes, ServerAlias can be used (multiple times, in fact) to dictate other
names to listen for. The "ServerName" is what will be used in default
error messages (404's, 403's, etc) however.

j

-- 
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Tue Aug 19 08:34:52 2008

This archive was generated by hypermail 2.1.8 : Tue Aug 19 2008 - 08:34:52 AKDT