-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
add sample Apache configuration #374
Conversation
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.
|
Also note that I've tried to use UWSGI with Apache, but ultimately failed. The procedure I follow, on Debian Buster, was to install the Then, on the server, I tried to configure the proxy with: It yielded a 500 internal server error after a ~10 seconds time, without anything particular in the logs, on the server or uwsgi side. Not sure what's up with that... |
Codecov Report
@@ Coverage Diff @@
## master #374 +/- ##
==========================================
+ Coverage 87.56% 87.59% +0.02%
==========================================
Files 59 59
Lines 7078 7078
Branches 1253 1253
==========================================
+ Hits 6198 6200 +2
+ Misses 594 593 -1
+ Partials 286 285 -1
Continue to review full report at Codecov.
|
|
Apologies for long delay in response. The way to integrate uwsgi with Apache would be to set it up with: https://uwsgi-docs.readthedocs.io/en/latest/Apache.html You are correct that a direct reverse proxy will just work with just the standard We can add support for (It is not clear if X-Forwarded-Proto would work for the op in #314 but will follow up). |
|
i'm not sure what to do with this - do you want me to make changes to the patch? |
|
okay, i've tweaked the docs to follow #395, so I guess this can be merged when the other lands. |
|
and for the record, I just couldn't quite figure out how to make pywb work uwsgi with uwsgi. i don't have time right now to dig deeper into that, but it would be useful to have a better, step-by-step set of instructions on how to set that up instead of just delegating this to the (rather huge) uwsgi documentation. :) thanks! |
Description
This patch updates the documentation to add a configuration snippet
for Apache.
Motivation and Context
This configuration can be used when launching
waybackin the defaultconfiguration, which is useful to add stuff like access control,
authentication, or encryption without going through the trouble of
setting up a UWSGI proxy.
The
force_schemeconfiguration wouldn't be necessary if pywb wouldsupport the (de-facto) standard
X-Forwarded-Protoheader. This isnot, unfortunately, currently the case so the configuration cannot be
only on Apache's side. Note that this is similar to the concerns raised in #314
Types of changes
Checklist: