From e4ef36f385c4f3b83ac4b49f2b07ee19c3166ff0 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 5 Feb 2013 09:52:57 -0500 Subject: [PATCH] LP#1268619: Sample Websocket translator Apache 2.2 configuration Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- examples/apache2/websockets.conf | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 examples/apache2/websockets.conf diff --git a/examples/apache2/websockets.conf b/examples/apache2/websockets.conf new file mode 100644 index 0000000..ae598a1 --- /dev/null +++ b/examples/apache2/websockets.conf @@ -0,0 +1,43 @@ +# :vim set syntax apache +# +# This is the top-level configuration file for the +# apache2-websockets instance. For example, in Debian +# this file lives in /etc/apache2-websockets/sites-available/ + +LogLevel debug +# - log locally +CustomLog /var/log/apache2-websockets/access.log combined +ErrorLog /var/log/apache2-websockets/error.log +# Add the PID to the error log (Apache 2.4 only) +# ErrorLogFormat "[%t] [%P] [%l] [pid %P] %F: %E: [client %a] %M" + +# ---------------------------------------------------------------------------------- +# Set up our SSL virtual host +# ---------------------------------------------------------------------------------- +Listen 7682 +NameVirtualHost *:7682 + + DocumentRoot /var/www + ServerName localhost:7682 + ServerAlias 127.0.0.1:7682 + SSLEngine on + SSLHonorCipherOrder On + SSLCipherSuite ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM + + # re-use the certs from the main apache instance + SSLCertificateFile /etc/apache2/ssl/server.crt + SSLCertificateKeyFile /etc/apache2/ssl/server.key + + +Listen 7680 +NameVirtualHost *:7680 + + ServerName localhost:7680 + ServerAlias 127.0.0.1:7680 + DocumentRoot /var/www + + + + SetHandler websocket-handler + WebSocketHandler /usr/lib/apache2/modules/osrf_websocket_translator.so osrf_websocket_init + -- 2.43.2