Last active
April 23, 2022 17:06
-
-
Save th-schwarz/21aacde84f54a45a0bc0c4bbddcd4d0e to your computer and use it in GitHub Desktop.
Fetch all domains on port 443 with aliases from apache2
This file contains 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
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