Merge branch 'master' into 2221-complete-docker
[arvados.git] / docker / api / apache2_vhost.in
1 # VirtualHost definition for the Arvados API server
2
3 <VirtualHost *:80>
4   ServerName @@API_HOSTNAME@@.@@ARVADOS_DOMAIN@@
5   ServerAdmin sysadmin@curoverse.com
6
7   RedirectPermanent / https://@@API_HOSTNAME@@.@@ARVADOS_DOMAIN@@/
8
9   LogLevel warn
10   ErrorLog  ${APACHE_LOG_DIR}/error.log
11   CustomLog ${APACHE_LOG_DIR}/access.log combined
12
13 </VirtualHost>
14
15 <VirtualHost *:443>
16   ServerName @@API_HOSTNAME@@.@@ARVADOS_DOMAIN@@
17   ServerAdmin sysadmin@curoverse.com
18
19   RailsEnv production
20   RackBaseURI /
21   RailsAppSpawnerIdleTime 1200
22
23   # Enable streaming
24   PassengerBufferResponse off
25
26   # Index file and Document Root (where the public files are located)
27   DirectoryIndex index.html
28   DocumentRoot /usr/src/arvados/services/api/public
29
30   LogLevel warn
31   ErrorLog  ${APACHE_LOG_DIR}/ssl_error.log
32   CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined
33
34   <Directory /usr/src/arvados/services/api/public>
35     Options Indexes FollowSymLinks MultiViews IncludesNoExec
36     AllowOverride None
37     Order allow,deny
38     allow from all
39   </Directory>
40
41   <IfModule mod_ssl.c>
42     SSLEngine on
43     # SSLCertificateChainFile /etc/ssl/certs/startcom.sub.class1.server.ca.pem
44     # SSLCACertificateFile    /etc/ssl/certs/startcom.ca.pem
45     # SSLCertificateFile      /etc/ssl/certs/qr1hi.arvadosapi.com.crt.pem
46     # SSLCertificateKeyFile   /etc/ssl/private/qr1hi.arvadosapi.com.key.pem
47     SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
48     SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
49     SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
50   </IfModule>
51
52 </VirtualHost>