1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 08:04:49 +01:00
pywb/sample-deploy/pywb-apache.conf

27 lines
702 B
Plaintext
Raw Permalink Normal View History

<VirtualHost *:80>
# optional: optimization to have apache serve static assets
Alias /wayback/static "/pywb/pywb/static"
ProxyPass /wayback/static !
<Directory "/pywb/pywb/static">
Options None
AllowOverride None
Order allow,deny
Allow from all
Require all granted
</Directory>
# required: proxy pass to pywb
ProxyPass /wayback uwsgi://pywb:8081/
# optional: set custom header based on IP ranges
<If "-R '192.168.1.0/24' || -R '127.0.0.1'">
RequestHeader set X-Pywb-ACL-User staff
</If>
# ensure header is cleared if no match
<Else>
RequestHeader set X-Pywb-ACL-User ""
</Else>
</VirtualHost>