diff --git a/docs/manual/usage.rst b/docs/manual/usage.rst index 522e35ae..289284cf 100644 --- a/docs/manual/usage.rst +++ b/docs/manual/usage.rst @@ -189,3 +189,29 @@ See the `Nginx Docs `_ for a lot more details on how } } +Sample Apache Configuration +^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The following Apache configuration snippet can be used to deploy pywb *without* uwsgi. A configuration with uwsgi is also probably possible but this covers the simplest case of launching the `wayback` binary directly. + +The configuration assumes pywb is running on port 8080 on localhost, but it could be on a different machine as well. + +.. code:: apache + + + ServerName proxy.example.com + Redirect / https://proxy.example.com/ + DocumentRoot /var/www/html/ + + + + ServerName proxy.example.com + SSLEngine on + DocumentRoot /var/www/html/ + ErrorDocument 404 /404.html + ProxyPreserveHost On + ProxyPass /.well-known/ ! + ProxyPass / http://localhost:8080/ + ProxyPassReverse / http://localhost:8080/ + RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME} +