Originally Posted by
roderashe
Hi. Webserver working great if I type in
www.example.com. If I type in example.com all I get is a web page that says "It Works". So my 'serveralias' doesn't seem to work. Here's my
www.example.com file:
Code:
<VirtualHost *>
ServerAdmin admin@example.com
ServerName www.example.com
ServerAlias example.com
# Indexes + Directory Root.
DirectoryIndex index.php
DocumentRoot /var/www/www.example.com/
</VirtualHost>
Any thoughts? Thanks!
Try this:
Code:
<VirtualHost *>
ServerAdmin admin@example.com
ServerName www.example.com
ServerAlias *example.com
# Indexes + Directory Root.
DirectoryIndex index.php
DocumentRoot /var/www/www.example.com/
</VirtualHost>
-Tim
Bookmarks