Skip to content

Instantly share code, notes, and snippets.

@mortenbra
Last active August 29, 2015 14:22
Show Gist options
  • Save mortenbra/98ffa25e73078f605d12 to your computer and use it in GitHub Desktop.
Save mortenbra/98ffa25e73078f605d12 to your computer and use it in GitHub Desktop.
Apache SSL configuration (protocols, ciphers)
# use the domain name or IP address
ServerName example.com:443
# point to the files created when generating the certificate
SSLEngine on
SSLCertificateFile /etc/httpd/ssl/apache.crt
SSLCertificateKeyFile /etc/httpd/ssl/apache.key
# disable broken/weak protocols and ciphers
# see https://cipherli.st/ for an updated list
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA !RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS"
# forward dynamic (ORDS) requests to Tomcat, same as is done for http on port 80
<VirtualHost _default_:443>
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /ords ajp://localhost:8009/ords
ProxyPassReverse /ords ajp://localhost:8009/ords
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment