1 # Configuration file for Apache running on Travis.
2 # PHP setup in FCGI mode
6 DocumentRoot %TRAVIS_BUILD_DIR%
8 ErrorLog "%TRAVIS_BUILD_DIR%/apache_error.log"
9 CustomLog "%TRAVIS_BUILD_DIR%/apache_access.log" combined
11 <Directory "%TRAVIS_BUILD_DIR%">
12 Options FollowSymLinks MultiViews ExecCGI
17 # needed for basic auth (PHP_AUTH_USER and PHP_AUTH_PW)
19 RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
20 RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
23 # Wire up Apache to use Travis CI's php-fpm.
24 <IfModule mod_fastcgi.c>
25 AddHandler php5-fcgi .php
26 Action php5-fcgi /php5-fcgi
27 Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
28 FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -pass-header Authorization
35 <VirtualHost _default_:443>
37 DocumentRoot %TRAVIS_BUILD_DIR%
39 ErrorLog "%TRAVIS_BUILD_DIR%/apache_error.log"
40 CustomLog "%TRAVIS_BUILD_DIR%/apache_access.log" combined
42 <Directory "%TRAVIS_BUILD_DIR%">
43 Options FollowSymLinks MultiViews ExecCGI
48 # needed for basic auth (PHP_AUTH_USER and PHP_AUTH_PW)
50 RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
51 RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
54 # Wire up Apache to use Travis CI's php-fpm.
55 <IfModule mod_fastcgi.c>
56 AddHandler php5-fcgi .php
57 Action php5-fcgi /php5-fcgi
58 Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
59 #FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -pass-header Authorization
63 # This cert is bundled by default in Ubuntu
64 SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
65 SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
67 <FilesMatch "\.(cgi|shtml|phtml|php)$">
68 SSLOptions +StdEnvVars
71 BrowserMatch "MSIE [2-6]" \
72 nokeepalive ssl-unclean-shutdown \
73 downgrade-1.0 force-response-1.0
74 BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown