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
server { | |
# Redirect any subdomain to the root domain | |
# to be captured by next server block | |
server_name *.example.com; | |
return 301 $scheme://example.com$request_uri; | |
} | |
server { | |
root /var/www; | |
index index.html index.htm; |