Created
November 29, 2015 09:43
-
-
Save Vitexus/6c780ff77fb385c26fad to your computer and use it in GitHub Desktop.
List URLs of enabled nginx sites
This file contains hidden or 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
#!/bin/sh | |
cat /etc/nginx/sites-enabled/* | grep server_name | awk '{ print "http://"$2 }' | sort | uniq | sed "s/;/\//" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment