<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>