I have a file in the Apache2 sites-available directory that reads (in part):
<VirtualHost morganpix.com:80>
ServerAdmin
morgan@acm.org
ServerName morganpix.com
ServerAlias
www.morganpix.com christophermorganphotography.com
DirectoryIndex index.html
DocumentRoot /var/www/morganpix.com/html/
. . .
</VirtualHost>
The browser sees my site if I type morganpix.com or
www.morganpix.com, but if I type christophermorganphotography.com (the other alias), I get a broken link message. The christophermorganphotography.com URL is pointing to linode's nameservers on godaddy.com, so I'm not sure why the aliasing isn't working.
I tried adding wild card characters to the ServerAlias line:
ServerAlias *.morganpix.com *.christophermorganphotography.com
With these changes, the morganpix.com URL worked as before, with and without www, but the christophermorganphotography.com link still would not come up.
I searched on the web for an solution to this, but could not find anything of use. Any help would be much appreciated!
- Chris M.