<VirtualHost *:80>
  # Uncomment this line and set it up with your actual webmaster email
  # or with your real email.
  #ServerAdmin webmaster@my-domain.com

  # Your actual domain name, on witch this virtual host is available.
  ServerName SITE_HOSTNAME

  # You may want your site to be available on other domain names, this is
  # what alias are for.
  # You can use the * wildcard caracter to match multiple sub-domains.
  #ServerAlias www2.my-domain.com www.my-other-domain.com *.yet-another-domain.com

  # The error log and access log. This can be used by awstats
  # Note : since we keed theses logs in /var/log/apache2, they are
  # automaticaly rotated by logrotate :D.
  ErrorLog /var/log/apache2/SITE_HOSTNAME-error.log
  LogLevel warn
  CustomLog /var/log/apache2/SITE_HOSTNAME-access.log combined

  # Theses lines only apply of the rewrite module is enabled.
  # This is a security enhancement recommanded by the nessus tool.
  <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
  </IfModule>

  # These section tel Apache 2 that it can follow symbolic links (cf. ln -s)
  # on your system. This can avoid a lot of problems... as well at
  # it can be a security issue if the links points to /etc...
  # be carefull at what you link :)
  <Directory />
    Options FollowSymLinks
    AllowOverride None
  </Directory>

  # The root folder of this virtual host.
  DocumentRoot SITE_PATH

  # Some options for the root folder.
  # Read Apache 2 documentation to know exactly what is done.
  <Directory SITE_PATH>
    Options Indexes FollowSymLinks MultiViews

    # By default, we do not accept overrides using .htaccess file.
    # If you want to enable overrides, you should read:
    # http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride
    # But a quicker way (but not so safe ;D) is to comment this line:

    AllowOverride None

    # And uncomment this one:
    #AllowOverride All

    Order allow,deny
    allow from all
  </Directory>

</VirtualHost>

