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
29 <Directory /usr/lib/cgi-bin>
38 <VirtualHost _default_:443>
40 DocumentRoot %TRAVIS_BUILD_DIR%
42 ErrorLog "%TRAVIS_BUILD_DIR%/apache_error.log"
43 CustomLog "%TRAVIS_BUILD_DIR%/apache_access.log" combined
45 <Directory "%TRAVIS_BUILD_DIR%">
46 Options FollowSymLinks MultiViews ExecCGI
51 # needed for basic auth (PHP_AUTH_USER and PHP_AUTH_PW)
53 RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
54 RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
57 # Wire up Apache to use Travis CI's php-fpm.
58 <IfModule mod_fastcgi.c>
59 AddHandler php5-fcgi .php
60 Action php5-fcgi /php5-fcgi
61 Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
62 #FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -pass-header Authorization
63 <Directory /usr/lib/cgi-bin>
69 # This cert is bundled by default in Ubuntu
70 SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
71 SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
73 <FilesMatch "\.(cgi|shtml|phtml|php)$">
74 SSLOptions +StdEnvVars
77 BrowserMatch "MSIE [2-6]" \
78 nokeepalive ssl-unclean-shutdown \
79 downgrade-1.0 force-response-1.0
80 BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown