Last active
June 16, 2023 15:09
-
-
Save eugrus/eda1ef50783d85ac8378130a5ad7238a to your computer and use it in GitHub Desktop.
Wikimedia Toolserver config for Bash based CGI and appropriate headers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cgi.assign += ( ".sh" => "/bin/bash" ) | |
setenv.add-response-header += ( "Content-Type" => "text/html; charset=utf-8" ) | |
$HTTP["url"] =~ "\.sh$" { setenv.add-response-header = ( "Content-Type" => "text/plain; charset=utf-8" ) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment