Display apache logs in travis console
[plcapi.git] / tests / ci / travis / apache_vhost
1 # Configuration file for Apache running on Travis.
2 # PHP setup in FCGI mode
3
4 <VirtualHost *:80>
5
6   DocumentRoot %TRAVIS_BUILD_DIR%
7
8   ErrorLog "%TRAVIS_BUILD_DIR%/apache_error.log"
9   CustomLog "%TRAVIS_BUILD_DIR%/apache_access.log" combined
10
11   <Directory "%TRAVIS_BUILD_DIR%">
12     Options FollowSymLinks MultiViews ExecCGI
13     AllowOverride All
14     Order deny,allow
15     Allow from all
16   </Directory>
17
18   # Wire up Apache to use Travis CI's php-fpm.
19   <IfModule mod_fastcgi.c>
20     AddHandler php5-fcgi .php
21     Action php5-fcgi /php5-fcgi
22     Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
23     FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -pass-header Authorization
24   </IfModule>
25
26 </VirtualHost>