Skip to content

Instantly share code, notes, and snippets.

@eugrus
Last active June 16, 2023 15:09
Show Gist options
  • Save eugrus/eda1ef50783d85ac8378130a5ad7238a to your computer and use it in GitHub Desktop.
Save eugrus/eda1ef50783d85ac8378130a5ad7238a to your computer and use it in GitHub Desktop.
Wikimedia Toolserver config for Bash based CGI and appropriate headers
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