Jeremy Davis's picture

For future reference Apache config is layed out a little different in Debian (and Ubuntu etc) than it is as per Apache documentation (and RHEL based distros). Whilst httpd.conf is still passed, Apache conf is broken up into separate files in Debian (which personally I think makes it make easier to work with...).

The conf files are all still in /etc/apache2 but they are (OTTOMH):

  • apache2.conf - main Apache conf file
  • ports.conf - the file where ports are defined
  • sites-available - contains all the conf files for indivdual virtual hosts
  • sites-enabled - contains symlinks to files in sites-available for sites that are enabled (enable and disable is done via commands: a2ensite <site-filename> & a2dissite <site-filename> respectively