forked from deas/wordpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-apache-ssl.conf
44 lines (37 loc) · 1.8 KB
/
docker-apache-ssl.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
44
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /etc/apache2/external/cert.pem
SSLCertificateKeyFile /etc/apache2/external/key.pem
# disable ssl compression
SSLCompression Off
# set HSTS Header
#Header add Strict-Transport-Security "max-age=31536000; includeSubdomains"
# Ciphers
SSLCipherSuite ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4
SSLHonorCipherOrder on
# http://httpd.apache.org/docs/2.4/logs.html
# We could use more than one entry for ErrorLog/CustomLog
# ErrorLog /proc/self/fd/2
ErrorLog "|/usr/bin/rotatelogs -l /var/log/apache2/wordpress-ssl-error-%Y.%m.%d.log 86400"
# rotatelogs -e sends them to stdout as well
# CustomLog /proc/self/fd/1 common
CustomLog "|/usr/bin/rotatelogs -e -l /var/log/apache2/wordpress-ssl-access-%Y.%m.%d.log 86400" common
SetEnv WP_JETPACK_DEV_DEBUG 1
SetEnv WP_DEBUG 0
SetEnv WP_DEBUG_LOG 0
SetEnv WP_DEBUG_DISPLAY 0
SetEnv SCRIPT_DEBUG 0
SetEnv SAVEQUERIES 0
SetEnv WP_DB_NAME banane
SetEnv WP_DB_USER banane
SetEnv WP_DB_PASS banane
SetEnv WP_DB_HOST localhost
SetEnv WP_ABSPATH /usr/share/wordpress
DocumentRoot /usr/share/wordpress
ErrorDocument 404 /index.php?error=404
Timeout 300
<Directory /usr/share/wordpress>
AllowOverride all
</Directory>
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet