Skip to content

Instantly share code, notes, and snippets.

Last active April 23, 2022 17:06
What would you like to do?
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