[PLUG] Question about apache2 virtual name server configuration.

David Mandel dmandel at pdxLinux.org
Tue Mar 21 01:01:58 UTC 2006


Suppose I'm configuring apache2 to run the web site, DavidMandel.com
and I want users to be able to get to it by pointing to:

           http://DavidMandel.com
      or
           http://www.DavidMandel.com

Assume that I already have an A record in my DNS for both addresses.

Do I need to build two separate files in my vhost.d directory:
              DavidMandel.com with "ServerName DavidMandel.com"
          www.DavidMandel.com with "ServerName www.DavidMandel.com"
or is there is better, more elegant way of handling the problem?


                                          Sincerely,
                                          David Mandel
                                          Chief Activist
                                          Portland Linux/Unix Group
                                          560 SE Alexander
                                          Corvallis, Oregon 97333
                                          (541) 737-9153 at work (OSU)
                                          (541) 730-5285 cell

   ======================================================================
   David Mandel                        http://www.DavidMandel.com
   Portland Linux/Unix Group           http://pdxLinux.org
   LinuxFund                           http://LinuxFund.org
   ======================================================================




More information about the PLUG mailing list