<VirtualHost *:80>
	ServerAdmin webmaster@localhost
	DocumentRoot %TRAVIS_BUILD_DIR%

	<Directory />
		Options FollowSymLinks
		AllowOverride All
	</Directory>

	<Directory "%TRAVIS_BUILD_DIR%">
		Options FollowSymLinks MultiViews ExecCGI
		AllowOverride All
		Order deny,allow
		Allow from all
	</Directory>

	# Wire up Apache to use Travis CI's php-fpm.
	<IfModule mod_fastcgi.c>
		AddHandler php5-fcgi .php
		Action php5-fcgi /php5-fcgi
		Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
		FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /tmp/php5-fpm.sock -pass-header Authorization
	</IfModule>

	ErrorLog ${APACHE_LOG_DIR}/error.log
</VirtualHost>