Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Providing Apache2 sample conf #2267

Merged
merged 1 commit into from
Jun 12, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions master/docs/developer/www-server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ Client will receive events as websocket frames encoded in json with following fo

{"k":key,"m":message}

.. _SSE:

Server Sent Events
~~~~~~~~~~~~~~~~~~

Expand Down
34 changes: 34 additions & 0 deletions master/docs/manual/cfg-www.rst
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,40 @@ Here is an nginx configuration that is known to work (nginx 1.6.2):
}
}

To run with Apache2, you'll need `mod_proxy_wstunnel <https://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html>`_ in addition to `mod_proxy_http <https://httpd.apache.org/docs/2.4/mod/mod_proxy_http.html>`_. Serving HTTPS (`mod_ssl <https://httpd.apache.org/docs/2.4/mod/mod_ssl.html>`_) is advised to prevent issues with enterprise proxies (see :ref:`SSE`), even if you don't need the encryption itself.

Here is a configuration that is known to work (Apache 2.4.10 / Debian 8), directly at the top of the domain.

.. code-block:: none


<VirtualHost *:443>
ServerName buildbot.example
ServerAdmin webmaster@buildbot.example

<Location /ws>
ProxyPass ws://localhost:8020/ws
ProxyPassReverse ws://localhost:8020/ws
</Location>

ProxyPass /ws !
ProxyPass / http://localhost:8020/
ProxyPassReverse / http://localhost:8020/

SetEnvIf X-Url-Scheme https HTTPS=1
ProxyPreserveHost On

SSLEngine on
SSLCertificateFile /path/to/cert.pem
SSLCertificateKeyFile /path/to/cert.key

# check Apache2 documentation for current safe SSL settings
# This is actually the Debian 8 default at the time of this writing:
SSLProtocol all -SSLv3

</VirtualHost>


.. _Web-Authorization:

Authorization rules
Expand Down