db3l wrote:
Are you sure you have the HTML files in the right location? /etc/apache/apache2/sites-available is a configuration directory for Apache and shouldn't be where you keep content.
So it sounds like Apache is trying to parse your HTML as a configuration file. Apache configuration files are XML, so you're probably getting an error from the XML parsing.
Files in sites-enabled are usually just links to files in sites-available, and are included from the main apache2.conf file.
-- David
The way I have it set up, sites-available contains symbolic links for a number of other config files, one for each of my virtual hosts. Sites-enabled contains symbolic links which point to these.
I want it set up this way if possible, so that the config file for the site is located with the other files - each site is checked into its own git repository, so I really don't want the configs to have to live in a central location.
Good call about Apache trying to parse the html files as if they were config files though - that sounds a lot more plausible than it mysteriously deciding to validate my html!
I'll take another look in light of that idea...