Results 1 to 1 of 1

Thread: apache2 serving up default if www not added to virtual host name

  1. #1
    Join Date
    Aug 2013
    Beans
    3

    apache2 serving up default if www not added to virtual host name

    I'm not sure what I've done wrong here. My default domain works fine. My virtual host domains work fine as long as I type in the full url, e.g. "www.domain.com". But if I type in just "domain.com" the default page is loaded. Here's my domain.conf file, edited to obscure the actual domain:

    <VirtualHost *:80>




    ServerName domain.com
    ServerAlias www.domain.* domain.*
    ServerAdmin me@gmail.com
    DocumentRoot /var/www/domain
    </VirtualHost>
    Last edited by wolfgang-rumpf; August 4th, 2014 at 09:36 PM. Reason: changed colors to be more legible

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •