# Apache example config for hex-zero application with ssl ServerName 0x0.ipa.example.com ServerAdmin webmaster@localhost DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined # force https for this path RewriteEngine On RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} !^(localhost|127.0.0.1) RewriteRule ^/hex-zero(.*) https://%{SERVER_NAME}/hex-zero$1 [R,L] ServerName 0x0.ipa.example.com ServerAdmin webmaster@localhost DocumentRoot /var/www/html #LogLevel info ssl:warn ErrorLog ${APACHE_LOG_DIR}/ssl-error.log CustomLog ${APACHE_LOG_DIR}/ssl-access.log combined SSLEngine on SSLProtocol all -SSLv2 -SSLv3 SSLHonorCipherOrder on 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" SSLCertificateFile /etc/ssl/private/https-0x0.ipa.example.com.pem SSLCertificateKeyFile /etc/ssl/private/https-0x0.ipa.example.com-nopw.key ProxyPass /hex-zero http://localhost:3031/ ProxyPassReverse /hex-zero http://localhost:3031/ # vim: syntax=apache ts=4 sw=4 sts=4 sr noet