You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* add sample Apache configuration
This configuration can be used when launching `wayback` in the default
configuration, which is useful to add stuff like access control,
authentication, or encryption without going through the trouble of
setting up a UWSGI proxy.
* enable support for X-Forwarded-Proto headers from #395
Copy file name to clipboardExpand all lines: docs/manual/usage.rst
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -189,3 +189,29 @@ See the `Nginx Docs <https://nginx.org/en/docs/>`_ for a lot more details on how
189
189
}
190
190
}
191
191
192
+
Sample Apache Configuration
193
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^
194
+
195
+
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.
196
+
197
+
The configuration assumes pywb is running on port 8080 on localhost, but it could be on a different machine as well.
198
+
199
+
.. code:: apache
200
+
201
+
<VirtualHost *:80>
202
+
ServerName proxy.example.com
203
+
Redirect / https://proxy.example.com/
204
+
DocumentRoot /var/www/html/
205
+
</VirtualHost>
206
+
207
+
<VirtualHost *:443>
208
+
ServerName proxy.example.com
209
+
SSLEngine on
210
+
DocumentRoot /var/www/html/
211
+
ErrorDocument 404 /404.html
212
+
ProxyPreserveHost On
213
+
ProxyPass /.well-known/ !
214
+
ProxyPass / http://localhost:8080/
215
+
ProxyPassReverse / http://localhost:8080/
216
+
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
0 commit comments