Add 'php/phpxmlrpc/' from commit 'cd5dbb4a511e7a616a61187a5de1a611a9748cbd'
[plcapi.git] / php / phpxmlrpc / 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>
27
28 <IfModule mod_ssl.c>
29
30 <VirtualHost _default_:443>
31
32   DocumentRoot %TRAVIS_BUILD_DIR%
33
34   ErrorLog "%TRAVIS_BUILD_DIR%/apache_error.log"
35   CustomLog "%TRAVIS_BUILD_DIR%/apache_access.log" combined
36
37   <Directory "%TRAVIS_BUILD_DIR%">
38     Options FollowSymLinks MultiViews ExecCGI
39     AllowOverride All
40     Order deny,allow
41     Allow from all
42   </Directory>
43
44   # Wire up Apache to use Travis CI's php-fpm.
45   <IfModule mod_fastcgi.c>
46     AddHandler php5-fcgi .php
47     Action php5-fcgi /php5-fcgi
48     Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
49     #FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -pass-header Authorization
50   </IfModule>
51
52   SSLEngine on
53   # This cert is bundled by default in Ubuntu
54   SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
55   SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
56
57   <FilesMatch "\.(cgi|shtml|phtml|php)$">
58     SSLOptions +StdEnvVars
59   </FilesMatch>
60
61   BrowserMatch "MSIE [2-6]" \
62   nokeepalive ssl-unclean-shutdown \
63   downgrade-1.0 force-response-1.0
64   BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
65
66 </VirtualHost>
67
68 </IfModule>