Skip to content

Instantly share code, notes, and snippets.

@th-schwarz
Last active April 23, 2022 17:06
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save th-schwarz/21aacde84f54a45a0bc0c4bbddcd4d0e to your computer and use it in GitHub Desktop.
Fetch all domains on port 443 with aliases from apache2
apache2ctl -S | sed "0,/^\*:443/d" | sed -e "/ServerRoot/Q" | sed '1d' | sed 's/.*port 443 namevhost //' | sed 's/.*alias //' | awk '{print $1}' | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment