2 ms·
Using haproxy^1 as an example To redirect to the most recent archive.org capture, I use a date in the distant future such as 203001234567890. This will automa
by 1vuio0pswjnm7 4y ago
Using haproxy^1 as an example
To redirect to the most recent archive.org capture, I use a date in the distant future such as 203001234567890. This will automatically redirect to the latest capture.
http-request set-uri https://web.archive.org/web/20301234567890if_/http://%[req.hdr(host)]%[pathq] if { hdr(host) -m str -f hosts-archive.txt }
To redirect to the earliest archive.org capture, I use 1. This will automatically redirect to the earliest capture.
http-request set-uri https://web.archive.org/web/1if_/http://%[req.hdr(host)]%[pathq] if { hdr(host) -m str -f hosts-archive.txt }
If I want to all requests for example.org files to retrieve from archive.org instead of example.org, I do something like
echo example.org >> hosts-archive.txt
echo reload|socat stdio /path/to/control/socket
1. https://www.haproxy.org https://www.haproxy.org for documentation.