I know I am using apache2, but I'm not sure if it's 2.2 or whatever. How can I can find out?
I am trying to follow the instructions from this site:
http://www.debian-administration.org/articles/412
But it does not work, apache will not even load.
My /etc/apache2/conf.d/virtual.conf looks like this:
Quote:
# We're running multiple virtual hosts.
#
NameVirtualHost *
|
I have a file called /etc/apache2/sites-available/default
I did not create that file, but as long as I only have that file enabled, apache works. Although I get is that default "it works" message.
I am not sure if I should use "site.com" for the site name, and "www.sitename.com" for the site alias, or the other way around.
My domain files look like this:
Quote:
#
# example.com (/etc/apache2/sites-available/example.com)
#
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName example.com
ServerAlias www.example.com
# Indexes + Directory Root.
DirectoryIndex index.html
DocumentRoot /var/www/example.com/
# Logfiles
ErrorLog /var/www/example.com/logs/error.log
CustomLog /var/www/example.com/logs/access.log combined
</VirtualHost>
|
My /var/www/example.com/index.html files do exist. And example.com is pingable.
Any glaring errors?