From ce80e6aafefc9986da23f7c2af39daf774bab037 Mon Sep 17 00:00:00 2001 From: 31KM Date: Fri, 18 Dec 2020 23:10:55 +0100 Subject: [PATCH] Update README.md Add instructions for reverse proxy --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 71f8337..2b601ee 100644 --- a/README.md +++ b/README.md @@ -45,3 +45,17 @@ hello world ##### how does syntax highlighting work? To get syntax highlighting you need to add the file extension at the end of your paste URL. + +##### running it behind Apache httpd as reverse proxy +Add the following to your httpd.conf file: +``` +LoadModule substitute_module modules/mod_substitute.so +... + + ProxyPass http://localhost:80/ + ProxyPassReverse / + AddOutputFilterByType SUBSTITUTE text/html + Substitute "s|action=\"/\"|action=\"/bin/\"|" + +``` +It exposes bin on http://HOST/bin