forked from statgen/bravo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apache-example.conf
43 lines (33 loc) · 1.29 KB
/
apache-example.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<VirtualHost *:80>
ServerName <your-bravo-url>
Redirect permanent "/" https://<your-bravo-url>/
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName <your-bravo-url>
# Requires mod_proxy and mod_proxy_http
ProxyPreserveHost On
# Tell Flask/WSGI that all URLs should be HTTPS
RequestHeader set X-Forwarded-Proto "https"
# Alias data path to genome data
Alias /genomes /data/genomes
# Exclude from modproxy forwarding
ProxyPass /genomes !
# Allow access to dir
<Directory "/data/genomes">
Require all granted
</Directory>
# Proxy webapp on port 8080
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
SSLEngine on
SSLProtocol All -SSLv2 -SSLv3
SSLHonorCipherOrder On
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5
SSLCompression Off
SSLCertificateFile /etc/ssl/certs/<your-cert>.crt
SSLCertificateKeyFile /etc/ssl/private/<your-key>.key
# SSLCertificateChainFile /etc/ssl/certs/<your-pem-file>.pem
# SSLCACertificatePath /etc/ssl/certs/
</VirtualHost>
</IfModule>