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
#ruby | |
# "server_name " include the whitespace to exclude non relevant results | |
# removes those server names that are commented | |
`sudo nginx -T | grep "server_name "`.gsub("server_name ","").delete("\t\n ").split(";").select{|domain|domain[0]!="#"} |
OlderNewer