Skip to content

Instantly share code, notes, and snippets.

@mcenirm
Created July 10, 2019 15:33
Show Gist options
  • Save mcenirm/252b06cffc6d8fdefd396e25fcb07aa3 to your computer and use it in GitHub Desktop.
Save mcenirm/252b06cffc6d8fdefd396e25fcb07aa3 to your computer and use it in GitHub Desktop.
Show active servername and serveralias values in Apache httpd.conf
apacheconfigtool --lowercasenames --configpath $PWD --useapacheinclude conf/httpd.conf | jq -S '..|[.servername?,.serveralias?]|.[]|strings'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment