##
## SSL Virtual Host Context
##
###
# chat.domain1.com
###
<VirtualHost *:443>
ServerName chat.domain1.com
#Path to client app for chat users
DocumentRoot /path/to/vhosts/prod.domain1.com
#Alias for data directory (not ejabberd related)
Alias /data /path/to/www/data/dk.domain1.com
#Apache log files
ErrorLog "|/usr/bin/rotatelogs -l /path/to/apache2-vhosts/chat3.domain1.com/error.%Y.%m.%d 86400"
CustomLog "|/usr/bin/rotatelogs -l /path/to/apache2-vhosts/chat.domain1.com/access.%Y.%m.%d 86400" combined
#Various php settings (not ejabberd related)
php_value session.save_path /path/to/data/chat.domain1.com/sessions
php_flag log_errors On
php_flag display_errors Off
php_value error_log /path/to/apache2-vhosts/chat.domain1.com/php_error.log
#Proxy to point connections from port 80 to 8088 where ejabberd is running
ProxyRequests Off
ProxyPass /http-bind/ http://127.0.0.1:8088/http-bind/
ProxyPassReverse /http-bind/ http://127.0.0.1:8088/http-bind/
ProxyPass /admin/ http://127.0.0.1:8088/admin/
ProxyPassReverse /admin/ http://127.0.0.1:8088/admin/
AddDefaultCharset UTF-8
#SSL configuration
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCACertificateFile /path/to/local_certs/2018-domain1.com/intermediate.crt
SSLCertificateFile /path/to/local_certs/2018-domain1.com/public.crt
SSLCertificateKeyFile /path/to/local_certs/2018-domain1.com/private.key
BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
#Disable indexes for document root
<Directory /path/to/vhosts/prod.domain1.com>
Options -Indexes
</Directory>
</VirtualHost>