I have installed apache2, there is a config file in /etc/apache2/sites-available and sites-enabled has a soft link to it. on the server, however, i still see /var/www/html/index.html. I have tried restarting apache with no luck. If I stop apache, nothing shows up on the box, so I'm certain it's not a multiple dameon issue or something like that. Can anyone think of any reason why apache is not seeing the enabled site?
In /etc/apache2/apache2.con, I have
# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf
But other than that, I don't see why apache would be hard wired to show the default index.
Thanks for any help, Kevin
UPDATE
here is the site config file:
<VirtualHost *:80>
ServerName example.com
DocumentRoot "/var/www/sites/example.com/current/public"
ErrorLog "/var/log/apache2/example.com-error_log"
CustomLog "/var/log/apache2/example.com-access_log" common
<Directory "/var/www/sites/example.com/current/public">
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
RewriteEngine On
# Remove the www
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
RewriteRule ^(.*)$ http://example.com/ [R=301,L]
</VirtualHost>
UPDATE
As an experiment, I removed the closing ">" to the config file to make it not well-formed, restarted apache and got no errors. This tells me the sites-enabled configs are not even being parsed.